Forum Moderators: phranque

Message Too Old, No Replies

mod proxy - All traffic except X

         

Boston444

7:01 pm on Sep 27, 2011 (gmt 0)

10+ Year Member



Hi Everyone,
Right now we have Apache HTTPD sitting out in from of Apache Tomcat. HTTPD is doing some basic mod_writes inside the virtual host sections (I have 10 sites) and then passes all traffic to Tomcat with the following:

<IfModule mod_proxy.c>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/

</IfModule>

My question is how can I tell ProxyPass to pass through all traffic EXCEPT if it matches the following URL conditions. I am not sure if this is possible. I want certain URL structures to get their data from the HTTPD server or possible a different different HTTPD server and not be forwarded onto Tomcat.

Thank You,
Adam

phranque

9:45 am on Sep 28, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, Boston444!

you might try using the ! directive of the ProxyPass Directive:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass