Trying to password protect a directory with Apache on Centos but it's not working.
:(
I used cPanel to create the user/pass details, which exist at:
/home/user/.htpasswds/my-secret-dir/passwd
I then had to manually create /home/user/my-secret-dir/.htaccess which looks like this:
code:
AuthType Basic
AuthName "My Secret Directory"
AuthUserFile "/home/user/.htpasswds/my-secret-dir/passwd"
require valid-user
But now it just keeps prompting for the login details, even when I'm definitely entering the correct ones.
I've got a working password protected directory for another domain on the same server, created about a year ago, and that all works fine still.
Any ideas what's up and how to fix?