[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


            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@xxxxxxxxxxxxxxxx
          Reporter: bjorn.wiberg@xxxxxxxxxxx
  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

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

IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=*
IndexOptions +FoldersFirst -HTMLTable +IconHeight +IconWidth +IgnoreCase
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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx