tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: get Mod_jk precedence over mod_rewrite in Apache2
Date Tue, 05 May 2009 14:13:39 GMT
Christophe.Dumonet@ifma.fr wrote:
...
Suggestion :
instead of using the JkMount/JkUnMount way of configuring your forwarded 
URLs, use the way described here :
http://tomcat.apache.org/connectors-doc/reference/apache.html
in the section : Using SetHandler and Environment Variables

In other words, instead of
   JkMount /myapp worker1
   JkMount /myapp/* worker1
   (JkUnMount /myapp/*.gif worker1)
use

<Location /myapp>
   SetHandler jakarta-servlet
   (SetEnvIf REQUEST_URI ^/myapp/.+\.gif no-jk)
   ...
</Location>

I find that it makes it much clearer what has precedence over what, 
because it fits better in the Apache general configuration logic.


Also, do not forget that in order for JkMount etc.. to be active in 
VirtualHosts (if you set them in the main part of the configuration), 
you have to use JkMountCopy in the VirtualHost.
Search for "JkMountCopy" on that same page.



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


Mime
View raw message