httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 51471] <DirectoryMatch>ed IndexIgnore doesn't
Date Fri, 03 Mar 2017 15:57:44 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=51471

Alexander R. <alexander.reintzsch+bugzilla@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|All                         |Linux
            Version|2.2.17                      |2.4.18
                 CC|                            |alexander.reintzsch+bugzill
                   |                            |a@gmail.com

--- Comment #4 from Alexander R. <alexander.reintzsch+bugzilla@gmail.com> ---
I have a similar issue with IndexIgnore inside an If-clause.

<Directory /var/www>
  DAV on
  ForceType text/plain
  AddDefaultCharset utf-8
  Options +Indexes +FollowSymLinks +MultiViews
  IndexOptions FancyIndexing
  IndexOptions SuppressHTMLPreamble
  IndexOptions FoldersFirst
  IndexOptions IconsAreLinks
  HeaderName /html/header.html
  ReadmeName /html/footer.html
  <If "-R '10.144.22.1/32'">
    IndexIgnore footer.html header.html README.TXT LIESMICH.TXT README.TXT~
LIESMICH.TXT~ Thumbs.db
  </If>
  <Else>
    IndexIgnore restricted footer.html header.html README.TXT LIESMICH.TXT
README.TXT~ LIESMICH.TXT~ Thumbs.db
  </Else>
<Directory>

Expected:
What it should do is to ignore the listed files. And if the remote address is
10.144.22.1 it should display "restricted" else it should also not list it in
the index.

What happens:
Neither IndexIgnore is fired. All files in the directory are listed.

If I put IndexIgnore outside the If-clause it works as expected.

I guess there is an issue with IndexIgnore inside some "dynamic"-tags similar
to the one described here.

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