mod_php (dev-php/mod_php-4.3.11-r2) has recently added AddDirectoryIndex to it's default config, but this doesn't seem to work. I've verified, and the gentoo-apache-2.0.52-r3/patches/07_all_mod_dir_incremental.patch does seem to get patched in... but it doesn't seem to work. Replacing: AddDirectoryIndex .php .php3 .php4 .phps .phtml with: DirectoryIndex index.php in /etc/apache2/modules.d/70_mod_php.conf does seem to work, and the configuration with AddDirectoryIndex is parsed correctly. I would suggest to verify the patch. Kind regards, Michael
AddDirectoryIndex is for filenames, not extensions, from everything I can read. A line that actually replaced full functionality would be: DirectoryIndex index.php index.php3 index.php4 index.phps index.phtml
John is correct. AddDirectoryIndex just expands DirectoryIndex to add more filenames to the current DirectoryIndex. This is needed because using DirectoryIndex overwrites the current DirectoryIndex. The syntax for both commands is the same.
Fixed in CVS. Next time, please Cc/assign to apache-bugs@gentoo.org so we're kept in the loop - I didn't even know about this until last night as it was assigned to vericgar.