httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46665] New: Regexp parsing problem in ProxyPassMatch
Date Wed, 04 Feb 2009 15:26:40 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46665

           Summary: Regexp parsing problem in ProxyPassMatch
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: gerard2.chevalier@schneider-electric.com


I setup a proxy to a tomcat server and I have problem with the ProxyPassMatch
directive.

If I write :
ProxyPassMatch ^(/.*\.page)$ ajp://hostname:8009$1
then I get the following error :
Syntax error on line 573 of C:/Program Files/Apache Software
Foundation/Apache2.2/conf/httpd.conf:
ProxyPass Unable to parse URL

I noticed that it is the concatenation of hostname + port + $1 that causes
trouble.
If I remove :8009 or $1, the directive can be parsed, but of course it is not
what I want !

I found the following workaroud :
ProxyPassMatch ^/(.*\.page)$ ajp://hostname:8009/$1

That makes it work.

Do you confirm that the initial syntax should work ?


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


Mime
View raw message