/etc/apache2/sites-available/default AllowOverride "AllowOverride None" to "AllowOverride All". Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all /# /usr/sbin/apache2ctl restart home directory: ~# htpasswd -c .htpasswd anonymous /var/www/protected# vi .htaccess # .htaccess AuthUserFile /home/directory/.htpasswd AuthName "Secure Area" AuthType Basic require valid-user /var/www# vi .htaccess # this is the .htaccess file Options +Indexes IndexOptions +ShowForbidden root@linuxbox:/var/www# ln -s /home/local_user /var/www root@linuxbox:/var/www# htpasswd -c .htpasswd local_user New password: Re-type new password: Adding password for user local_user root@linuxbox:/var/www# vi .htaccess # .htaccess AuthUserFile /var/www/.htpasswd AuthName "Secure Area" AuthType Basic require valid-user Options +Indexes IndexOptions +ShowForbidden root@linuxbox:/var/www# ls -la total 16 drwxr-xr-x 2 root root 4096 Nov 14 23:25 . drwxr-xr-x 15 root root 4096 Jul 2 2014 .. -rw-r--r-- 1 root root 167 Nov 14 23:22 .htaccess -rw-r--r-- 1 root root 23 Nov 14 23:25 .htpasswd lrwxrwxrwx 1 root root 14 Mar 24 2014 local_user -> /home/local_user