Website should work on http only since you are not asked to run it on https specifically.
Please try to check Apache logs to get some information what exactly happening behind the scenes, I am sure you will get some valuable information from there to troubleshoot the issue.
This question is really confusing if we didn’t read it carefully and ending up changing lot of stuff in Apache… we are missing logic here… Basic + PAM Authentication… it took a lot of time to understand but finally able to finish it… Read the question carefully…
Great one
@hprasanna hint for u: use /protected at end of LB url in your SS to check or from jump box try below
curl -u username>:password> http://<LB Url/protected/index.html
and it should work for only given user… for other users it should return 401 unauthorized error. All the best
I’m not able to run command sudo systemctl start httpd keeps throwing this error Failed to get D-Bus connection: Operation not permitted. Has anyone ran into this issue? @Inderpreet@kodekloud-support3
I am a pretty newbie and just was able to do a basic install of the Apache server. I never didnt encounter with a PAM in the real life.
Could someone help me out? Could you share the right solution with me, step by step? I have spent with this task several hours and do not know what to do.
according to task install PAM configuration
write some config into PAM default config file
generate htpasswd
and check by curl -u user-name http://ip-addr:ip
hope you got it
“Generate htpasswd” - In the task its mentioned that “We dont want to use htpasswd file for authentication.” Please find the attached screenshot. Here is the confusion
Seems like you configured it to work on URL http://<website-url>:<apache_port> however in the question is was specifcally asked to run it on http://<website-url>:<apache_port>/protected URL.
Hi @kiran, @Inderpreet , @hprasanna , @Chudo
Since the question asks for Basic + PAM Authentication ,for the Basic Authentication part , do we need to also setup .htaccess file . If so what is the AuthUserFile to use since the question says to not use htpasswd file ?