"Ruediger Pluem" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > PR 38864 (http://issues.apache.org/bugzilla/show_bug.cgi?id=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/ </LocationMatch> 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. </disclaimer> > 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 >