tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: excluding some path from tomcat
Date Thu, 12 Aug 2010 18:21:11 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Angelo,

On 8/12/2010 9:59 AM, Angelo Chen wrote:
> I use Apache web server 2.2 in front of tomcat, it works well with Apache's
> default proxy module, however, I can't exclude some path from it:
> 
> ProxyPass /  http://localhost:8080/
> ProxyPass /static !
> ProxyPassReverse / http://localhost:8080/
> ProxyPreserveHost on

This is one of the reasons I have decided to stick with mod_jk instead
of mod_proxy_http or mod_proxy_ajp: I couldn't figure out how to map
different sub-URIs to different places.

What happens if you do this:

ProxyPass /static !
ProxyPass /  http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyPreserveHost on

(I have only reversed the order of the ProxyPass directives).

If mod_proxy processes rules in order until one matches, it may be that
"ProxyPass /" is taking over without ever checking the "/static" rule
you have there.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxkO5cACgkQ9CaO5/Lv0PBHyACeMnvFJaGcSTYcniQ+IBiRspu+
v9IAn3/33WitRR0WohzdTA1cg51aMTcr
=N2po
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message