First page Back Continue Last page Overview Graphics
Revisiting conf.d/private
<Location /private>
Order deny,allow
Deny from all
Allow from localhost ip6-localhost
AuthType Basic
AuthName 'Private site. Authenticate or be shot.'
AuthUserFile /var/www/.htpasswd
require valid-user
satisfy any
</Location>
Use the htpasswd command to create the .htpasswd file and populate it:
htpasswd -c /var/www/.htpasswd username
htpasswd /var/www/.htpasswd newusername
htpasswd -D /var/www/.htpasswd username