htpasswd not working when set up in the httpd.conf file
Posted
by
Shamoon
on Server Fault
See other posts from Server Fault
or by Shamoon
Published on 2013-06-25T13:37:24Z
Indexed on
2013/06/27
10:23 UTC
Read the original article
Hit count: 383
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
© Server Fault or respective owner