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>
Make sure the underlying file system permissions allow the User/Group under which Apache is running to access the necessary folders/files.
Is the directory readable? You need to have "r" and "x" bits set on the directory (chmod 0555 or chmod a+rx) for the user to read the directory listing.
To verify: