https://issues.apache.org/bugzilla/show_bug.cgi?id=49515

           Summary: Problem with parsing a LocationMatch directive
           Product: Apache httpd-2
           Version: 2.2.15
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Consider the following example:

<VirtaulHost z.z.z.z>

    <LocationMatch /bleble-test/*>
        Order Deny,Allow
        Deny from All
        Allow from x.x.x.0/24
        Allow from y.y.y.0/24
    </LocationMatch>

    <LocationMatch /bleble/*>
        Order Deny,Allow
        Deny from All
        Allow from x.x.x.0/24
        Allow from y.y.y.0/24
    </LocationMatch>

</VirtualHost>

Client connect to resources from address x.x.x.100 without any problems.
Next, when we modify configuration as follows:

<VirtaulHost z.z.z.z>

    <LocationMatch /bleble-test/*>
        Order Deny,Allow
        Deny from All
        Allow from x.x.x.0/24
        Allow from y.y.y.0/24
    </LocationMatch>

    <LocationMatch /bleble/*>
        Order Deny,Allow
        Deny from All
# Allow from x.x.x.0/24
        Allow from y.y.y.0/24
    </LocationMatch>

</VirtualHost>

client can not connect to /bleble/index.html AND also to
/bleble-test/index.html
Why ?
When we change configuration sequence to:
<VirtaulHost z.z.z.z>

    <LocationMatch /bleble/*>
        Order Deny,Allow
        Deny from All
# Allow from x.x.x.0/24
        Allow from y.y.y.0/24
    </LocationMatch>

    <LocationMatch /bleble-test/*>
        Order Deny,Allow
        Deny from All
        Allow from x.x.x.0/24
        Allow from y.y.y.0/24
    </LocationMatch>

</VirtualHost>

everything is working properly.
I think there is a problem with parsing a special characters like - and /
because despite this locations looks similar, in fact there are different
(without any dependencies).

Could anyone confirm this problem or explain why the first(with modification)
configuration doesn't work ?

Best Regards
PS: Sorry for my english ;-)

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

Reply via email to