[CentOS] Apache DirectoryIndex

Kirk Bocek

t004 at kbocek.com
Fri Oct 13 04:30:36 UTC 2006


I'd like to change the DirectoryIndex document for just the DocumentRoot, 
leaving the default DirectoryIndex setting for all other directories. However, 
when I set DirectoryIndex in the <Directory "/var/www/html"> section of 
/etc/httpd/conf/httpd.conf it seems to set it for *all* directories.

DirectoryIndex doesn't seem to be allowed in .htaccess either.

Does anyone know how to set this?

Thanks,
Kirk Bocek




More information about the CentOS mailing list