Password file location - /var/httpd/conf/.htpasswd
command -
htpasswd -c /home/doe/public_html/.htpasswd jane
http://httpd.apache.org/docs/2.0/programs/htpasswd.html
# add password on access
AuthUserFile conf/.htpasswd
AuthGroupFile /dev/null
AuthName "Authorization Required"
Authtype Basic
require valid-user
or any other location as you want
No comments:
Post a Comment