httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: ProxyPass does not work inside LocationMatch
Date Sun, 12 Mar 2006 02:40:23 GMT

"Ruediger Pluem" <> wrote in message
> PR 38864 (
> revealed that ProxyPass does not work inside LocationMatch if
> LocationMatch uses a regular expression (which might be a frequent
> use of it :-)). I helped the reporter by pointing him to a working
> mod_rewrite configuration that does what he needs.

Yup, I've known that for for some time now :).

> The question that remains to me is:
> Should we make ProxyPass aware of regular expressions, such
> that it works inside of a LocationMatch?

I'm mostly against it.  It adds a lot of complexity that is more likely to 
lead users to trying things that simply won't work.  e.g.:
   DirectoryIndex index.jsp index.html index.php
   <LocationMatch *.jsp>
         ProxyPass ajp://localhost:8009/

Which will send all requests for an index page to Tomcat, even if there 
isn't an index.jsp file present.

<disclaimer> My vote doesn't count on this list.  I'm just a lurker. 

> or
> should we just add a warning to the docs that ProxyPass does
> work inside of Location but not inside of LocationMatch?
> I am undecided. As I am used to mod_rewrite I do not miss RE for
> ProxyPass and from my feeling too much work needs to be done for
> too little gain, OTH it might be nice for people who do not want
> to use mod_rewrite for these comparable simple tasks.

My vote (non-binding) is to go with your gut feeling.

> Regards
> Rüdiger

View raw message