[Bug 387708] Re: ProxyPassMatch does not work

jh jhiswin at gmail.com
Thu Jun 25 03:24:57 BST 2009


Ubuntu 9.04 Jaunty
Apache 2.2
a2enmod proxy_ajp

It seems that the documentation was recently fixed to show that
ProxyPass(Match) is not meant to be used within Location declaratives.
Either that or I misread or read the wrong docs, as I remember following
docs that showed ProxyPass(Match) as being placed within Location
declaratives.

Using ProxyPass(Match) within Location declaratives causes unexpected
behavior (to the user), such that ProxyPass disables the use of RegEx
within Location(Match) declaratives, and whereby ProxyPassMatch enables
RegEx within Location(Match).

Here is a use case, where I am trying to proxy(AJP) .jsp extension urls to Apache Tomcat
<Location .+\.jsp$>
ProxyPassMatch ajp://localhost:8009/
ProxyPassReverse ajp://localhost:8009/
</Location>
Notice that ProxyPassMatch only takes one parameter.  Also notice that removing "Match" will cause the RegEx to stop matching.

As someone who has used Apache in the past, I probably should have
realized that Apache behaves this way due to the way Locations are
parsed, but I had been trying to follow the docs I was reading as
literally as I could.

Anyhow, this bug should probably be marked invalid.

-- 
ProxyPassMatch does not work
https://bugs.launchpad.net/bugs/387708
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.



More information about the Ubuntu-server-bugs mailing list