Password Protect Web Directory Using htaccess

This is a trivial matter for most admins. Here’s a quick recipe:

AuthType Basic
AuthName "Restricted Area"
AuthBasicProvider file
AuthUserFile /etc/apache2/.htpasswd
Require valid-user

Similar Posts:

Tagged , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *