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.
Share on Twitter Share on Facebook