httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51471] New: <DirectoryMatch>ed IndexIgnore doesn't
Date Mon, 04 Jul 2011 18:33:00 GMT

             Bug #: 51471
           Summary: <DirectoryMatch>ed IndexIgnore doesn't
           Product: Apache httpd-2
           Version: 2.2.17
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_autoindex
    Classification: Unclassified

IndexIgnore does not seem to honor <DirectoryMatch> sections.

It appears that ignore_entry is doing a literal compare of the directory path
rather than taking the RE of the DirectoryMatch into account.

Consider a simple test case:
 /var/www/fancy/HEEDME exists, as does /var/www/fancy/sub/HEEDME

Alias /fancy/ /var/www/fancy/
<Directory "/var/www/fancy">
  Options +Indexes
  IndexOptions FancyIndexing FoldersFirst NameWidth=* SuppressDescription
  IndexIgnore README ..
  Order Deny,Allow
  Allow from all
<DirectoryMatch "^/var/www/fancy/.+">
  IndexIgnore HEEDME

HEEDME correctly appears in the autoindex of /fancy/

HEEDME incorrectly appears in the autoindex of /fancy/sub/

However, if the DirectoryMatch is replaced by:

<Directory "/var/www/fancy/sub">
  IndexIgnore HEEDME

HEEMDE disappears as expected.  

Given that in real life, there are many subdirectories (that come and go), this
is a major annoyance since the .conf file has to include (and be updated) for
each subdirectory.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message