I would like to password protect a folder for some internet web pages. I used the Password Protect Directories item in cPanel, and it created the following .htaccess file:
AuthType Basic
AuthName "Protected Login"
AuthUserFile "/home/mydomain/.htpasswds/protect/passwd"
require valid-user
However, there is no "passwd" file in the folder "protect", so when I try to access the page:
http://www.mydomain.com/protect/index.htm
I enter my user name and password, but it is rejected. What am I missing? What else do I need to do to get this working? Any ideas would be appreciated. Thanks.
AuthType Basic
AuthName "Protected Login"
AuthUserFile "/home/mydomain/.htpasswds/protect/passwd"
require valid-user
However, there is no "passwd" file in the folder "protect", so when I try to access the page:
http://www.mydomain.com/protect/index.htm
I enter my user name and password, but it is rejected. What am I missing? What else do I need to do to get this working? Any ideas would be appreciated. Thanks.