httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50377] New: <Files*> and <Location*> sections seem to completely miss how multiple of each of them are merged
Date Tue, 30 Nov 2010 00:52:47 GMT

           Summary: <Files*> and <Location*> sections seem to completely
                    miss how multiple of each of them are merged
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Documentation


Perhaps I haven't seen it or I'm just stupid but from the descriptions
...I do absolutely not understand how multiple matching <Files> sections (or
<Location> sections or their regexp-counterparts are merged).

Is it:
1) the first one that matches?
2) the last ones?
3) all that match?
4) the most specific match? (not to ask how one should defined this)

Take the following (still very simply example)

<Files *.pdf>
Order Deny,Allow
SetOutputFilter INCLUDES
<Files x.pdf>
Order Allow,Deny
SetOutputFilter DEFLATE

What is the effective outcome now when accessing "x.pdf"?
1)Order Deny,Allow
SetOutputFilter INCLUDES

2)Order Allow,Deny
SetOutputFilter DEFLATE

3)Order Allow,Deny (<????)

4)Order Allow,Deny
SetOutputFilter DEFLATE

Or another IMHO even more confusing example:
<Location />
    Order allow,deny
    Deny from all
<LocationMatch /server-status>
    SetHandler server-status
    Order allow,deny
    Allow from ::1

How are they merged? And why? (When accessing /server-status

And why does e.g.:
<Location />
    Allow from ::1
<LocationMatch /server-status>
    SetHandler server-status
    Order allow,deny

Not lead to an allow, when accessin /server-status.

For <Directory>/Match all this is totally clear,... from the least specific to
the most specific dir.


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