htpasswd not working when set up in the httpd.conf file
- by Shamoon
My httpd.conf file looks like:
<Directory "/path/to/mysite">
AuthType Basic
AuthName "Restricted Files"
AuthUserFile "/path/to/.htpasswd"
Require user valid-user
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
I generated my .htpasswd file using the htpasswd command: $ htpasswd ~/.htpasswd myuser
So now when I restart apache, it prompts for a username and password, however, when I type in my username and password, it just prompts again. Any help would be appreciated.
Thanks
My .htpasswd file looks like: myuser:$aaa1$rsU3A8zu$1xiIou2elcL3QLIPhzsaj0