https://issues.apache.org/bugzilla/show_bug.cgi?id=53319
Priority: P2
Bug ID: 53319
Assignee: [email protected]
Summary: Multiple DirectoryIndex statements in the same context
don't cause an override
Severity: normal
Classification: Unclassified
OS: Linux
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: 2.4-HEAD
Component: mod_dir
Product: Apache httpd-2
When having multiple DirectoryIndex statements in the same context (e.g.:
Server) they are not overridden or merged - according to mod_info's
-DDUMP_CONFIG.
Example:
# httpd.conf
DirectoryIndex index.html
Include extra/php.conf
# extra/php.conf
DirectoryIndex index.php index.html
# extra/vhosts.conf
<VirtualHost *>
ServerName sample
DocumentRoot /srv/web/sample/htdocs
FallbackResource /index.php
</VirtualHost>
Accessing `http://sample/foo` where `foo` is a subfolder of the `DocumentRoot`
will yield empty content. It is unclear to me if this is caused through
interaction between `DirectoryIndex` and `FallbackResource`. However,
*) This behaviour did not exist in 2.2 - so either it's a new feature and
should be documented or it's a regression and should be fixed.
*) Adding `DirectoryIndex index.php` to the `VirtualHost` container fixes the
described behaviour, the correct content is returned instead of nothing.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]