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 2018/11/04 06:57:04 UTC

[Bug 62882] New: DirectoryIndex arguments match prefix of filenames, not exact filenames

https://bz.apache.org/bugzilla/show_bug.cgi?id=62882

            Bug ID: 62882
           Summary: DirectoryIndex arguments match prefix of filenames,
                    not exact filenames
           Product: Apache httpd-2
           Version: 2.4.25
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: mod_dir
          Assignee: bugs@httpd.apache.org
          Reporter: bjorn.wiberg@outlook.com
  Target Milestone: ---

The arguments given to DirectoryIndex, when one specifies filenames, appear to
specify *prefixes* of what mod_dir should be looking for rather than exact
filenames.

If you, for example, have:

DirectoryIndex index.php index.pl index.cgi index.phtml index.shtml index.xhtml
index.html.var index.html index.htm default.php

...and then add a GIF file called "index.html.gif" to an autoindexed directory,
Apache appears to happily serve that GIF file as the directory index, although
DirectoryIndex only specifies "index.html".

Other configurations options in effect (for reference, in case they would
influence):

IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=*
Charset=UTF-8
IndexOptions +FoldersFirst -HTMLTable +IconHeight +IconWidth +IgnoreCase
+ScanHTMLTitles
IndexOptions +UseOldDateFormat


...and for mod_negotiation:

LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl
pt pt-BR ru sv tr zh-CN zh-TW
ForceLanguagePriority Prefer Fallback

...and for core:

Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

-- 
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 62882] DirectoryIndex arguments match prefix of filenames, not exact filenames

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

Björn Wiberg <bj...@outlook.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bjorn.wiberg@outlook.com

-- 
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 62882] DirectoryIndex arguments match prefix of filenames, not exact filenames

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

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Christophe JAILLET <ch...@wanadoo.fr> ---
This not a bug.

Have a look at:
   https://httpd.apache.org/docs/2.4/en/content-negotiation.html#multiviews
   https://httpd.apache.org/docs/2.4/en/mod/mod_negotiation.html#multiviews

It explains the way 'MultiViews' works. (especially "MultiViews may also apply
to searches for the file named by the DirectoryIndex directive, if the server
is trying to index a directory.")

-- 
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