Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90120 - Apache 2.0.52-r3 AddDirectoryIndex problem
Summary: Apache 2.0.52-r3 AddDirectoryIndex problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 All
: High normal (vote)
Assignee: Michael Stewart (vericgar) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-23 05:42 UTC by voidptr
Modified: 2005-04-30 15:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description voidptr 2005-04-23 05:42:13 UTC
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
Comment 1 John White 2005-04-29 04:24:50 UTC
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
Comment 2 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-04-30 13:31:49 UTC
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.
Comment 3 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-30 15:48:05 UTC
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.