You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/05/29 16:26:59 UTC

[Bug 53319] New: Multiple DirectoryIndex statements in the same context don't cause an override

https://issues.apache.org/bugzilla/show_bug.cgi?id=53319

          Priority: P2
            Bug ID: 53319
          Assignee: bugs@httpd.apache.org
           Summary: Multiple DirectoryIndex statements in the same context
                    don't cause an override
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Reporter: i.galic@brainsware.org
          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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53319] Multiple DirectoryIndex statements in the same context don't cause an override

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53319

--- Comment #1 from Stefan Fritsch <sf...@sfritsch.de> ---
NB: -DDUMP_CONFIG does not give any hint how the directives are merged or
override each other. I have tried to clarify this in r1343935

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org