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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]