Password protected directory issue
Hi,
I used Cpanel password protected directories to make some directory password protected.
Now when I try to go to the firectory URL, it says ( page not found ).
I opened ( ,htacess) inside this folder and found it containts:
AuthType Basic
AuthName "Blablabla"
AuthUserFile "/home/direcotrry/.htpasswds/public_html/wp-admin/passwd"
require valid-user
When I make the lines in the htaccess file as comment ( hash them), the URL works fine again.
And I went to this path: "/home/direcotrry/.htpasswds/public_html/wp-admin/passwd", to find it's normal containing the username and the encrypted password
What is wrong?
-
Now when I try to go to the firectory URL, it says ( page not found ).
Please execute the below command on the server and replicate the blank page scenario and check what error is logged on the server. That will be helpful to troubleshoot and advise properly.. # tail -f /usr/local/apache/logs/error_logs0 -
Try adding this to the end: ErrorDocument 403 default
So it will look like:AuthType Basic AuthName "Blablabla" AuthUserFile "/home/direcotrry/.htpasswds/public_html/wp-admin/passwd" require valid-user ErrorDocument 403 default0 -
Please execute the below command on the server and replicate the blank page scenario and check what error is logged on the server. That will be helpful to troubleshoot and advise properly.. # tail -f /usr/local/apache/logs/error_logs
I don't have access to server to execute commandTry adding this to the end:
ErrorDocument 403 default
So it will look like:AuthType Basic AuthName "Blablabla" AuthUserFile "/home/direcotrry/.htpasswds/public_html/wp-admin/passwd" require valid-user ErrorDocument 403 default
I have added it, But still same result, no change at all.0 -
Have you tried simply removing the password protection from this specific directory and then re-add it? What is the directory you're attempting to protect? It is in the public_html directory, correct? 0 -
I don't have access to server to execute command
I think you should contact your server provider or the person who has the server access to troubleshoot it..0
Please sign in to leave a comment.
Comments
5 comments