You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/06/29 09:11:20 UTC

DO NOT REPLY [Bug 49515] New: Problem with parsing a LocationMatch directive

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: bugs@httpd.apache.org
        ReportedBy: tomasz1980@wp.pl


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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49515] Problem with parsing a LocationMatch directive

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49515

Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Ruediger Pluem <rp...@apache.org> 2010-06-29 06:48:25 EDT ---
Bugzilla is for reporting bugs and not a user support forum. Please post your
question on the users support list. Locationmatch is using regular expressions
where * means something different then in wildcard patterns.

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