Apache Enable Directory Browsing (Indexes) in Arch Linux

Posted by: scoopseven 12 years ago

We had a VirtualHost defined for a simple website; we wanted to enable directory browsing for this (password protected) site. Simple, right? Despite all of my Google searching, adding "Options Indexes", "Options +Indexes", "Allow Overrides" and adding .htaccess files, we were unable to get directory browsing working. A quick look at the http error_log revealed this error:

Directory index forbidden by Options directive: /path/to/files

Our VirtualHost config, looked like this (below); it was all good, so that error turned out to be very misleading.

<Directory /path/to/files>
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Turns out that, like Fedora, Arch Linux puts a welcome.conf in /etc/httpd/conf/extra/, where all .conf files are automatically included by httpd.conf. Once I renamed the welcome.conf file to welcome.conf.bak and restarted Apache, it started working. Yay.  Make sure you don't leave it with a .conf extension, or it will still be included.

Currently unrated


Recent Tweets

Recent Posts

Archive

2013
2012
2011
2010
2009
2008
2007
2006

Categories

Authors

Feeds

RSS / Atom