Why does Apache ignore my Directory block?

Posted by Codemonkey on Server Fault See other posts from Server Fault or by Codemonkey
Published on 2012-03-22T16:21:21Z Indexed on 2012/03/22 17:33 UTC
Read the original article Hit count: 279

Filed under:

I just moved my projects into a new workstation. I'm having trouble getting my Apache installation to acknowledge my .htaccess files. This is my /etc/apache2/conf.d/dev config file:

<Directory /home/codemonkey/dev/myproject/>
    Options -Indexes
    AllowOverride All

    Order Allow,Deny
    Deny from all
</Directory>

I know the config file is being included by Apache because it complains if I put erroneous syntax in it (Action 'configtest' fails).

My project is reachable through Apache by a symlink in the /var/www directory. The server is running with my user and group, so it has my permissions. My entire dev folder has permissions set to 770 recursively.

Despite all this, I'm still getting an indexed display of my project folder when I visit http://localhost/myproject. Why isn't the above config making it impossible to view the folder in the browser?

© Server Fault or respective owner

Related posts about apache2