httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51471] New: <DirectoryMatch>ed IndexIgnore doesn't
Date Mon, 04 Jul 2011 18:33:00 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51471

             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
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: tlhackque@yahoo.com
    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
TrackModified
  IndexIgnore README ..
  Order Deny,Allow
  Allow from all
</Directory>
<DirectoryMatch "^/var/www/fancy/.+">
  IndexIgnore HEEDME
</DirectoryMatch>

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

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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


Mime
View raw message