proxy_ajp wildcards

Posted by The Digital Ninja on Server Fault See other posts from Server Fault or by The Digital Ninja
Published on 2011-01-13T19:59:43Z Indexed on 2011/01/13 20:55 UTC
Read the original article Hit count: 281

Filed under:
|
|
|

I need to setup apache so that any site.com/ANYTHING/servlet/ANYTHING goes over ajp into tomcat, but regular files will go through apache still.

I have been messing around with this to no avail

<LocationMatch "./*/servlet/*">
Order Allow,Deny
Allow from all
ProxyPass ajp://localhost:8009/
ProxyPassReverse /
</LocationMatch>

This works at directing everything to our tomcat insance.

ProxyPass      /       ajp://localhost:8009/

© Server Fault or respective owner

Related posts about apache

Related posts about httpd