my goal is to deny access to certain sub-directories. my localhost configuration allows overriding like that:
<Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory>
I also have an .htaccess file in /var/www/ with contents:
<Directory /var/www/*> Order allow,deny allow from all </Directory>
Those rules above state access to everyone, but my server responds with internal error. "cat /var/log/apache2/error.log | tail -n 10" gives:
[Thu Feb 23 12:41:09 2012] [alert] [client 127.0.0.1] /var/www/.htaccess: <Directory not allowed here"
Why is that so ? Any links on extensive guides on this problem are also extremely appreciated. Thanks.