Linux – Apache2 Options Indexes

apache-2.2linux

I am experimenting with Apache and Option Indexes. I mv index.html to no_filename. When I went to www.dunno.com I got a forbidden webpage instead of the directory listing that I was expecting. Why is this? I have mod_autoindex installed and enabled in httpd.conf:

<VirtualHost *:80>
Servername www.dunno.com
DocumentRoot /var/www/web1
<Directory "/var/www/web1">
Options Indexes  
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Best Answer

Options +Indexes

Make sure the underlying file system permissions allow the User/Group under which Apache is running to access the necessary folders/files.