Bug 38865

Summary: LocationMatch not working
Product: Apache httpd-2 Reporter: Douglas Acheson <douglas.acheson>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 2.2.0   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description Douglas Acheson 2006-03-06 17:18:50 UTC
I want to proxy (loadbalance) all jsp and frm requests to tomcat through the
proxy and LB modules, and I cannot.

  I have the proxying/LBing working correctly for the following:

<LocationMatch "/myproject">
  ProxyPass balancer://myCluster/myproject stickysession=JSESSIONID
  ProxyPassReverse balancer://myCluster/bpsproject
  Order Deny,Allow
  Allow from all
</LocationMatch>

Now, when I try to use a regular expression to proxy .jsp and .frm requests,
there is no proxying done all.  This is what I use:

<LocationMatch "^/myproject/.+\.(jsp|frm)$">
  ProxyPass        balancer://myCluster/myproject stickysession=JSESSIONID
  ProxyPassReverse balancer://myCluster/bpsproject
  Order Deny,Allow
  Allow from all
</LocationMatch>

In the error log I get a 404 error:
[Mon Mar 06 10:45:41 2006] [error] [client 10.0.0.152] File does not exist:
C:/dwfa/runtime/apache/httpd/html/myproject/login.jsp

I have tried this with win32 (got binary) and linux (built) with the same results.
Comment 1 Astrid Keßler 2006-03-06 20:20:49 UTC

*** This bug has been marked as a duplicate of 38864 ***