tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: get Mod_jk precedence over mod_rewrite in Apache2
Date Tue, 05 May 2009 14:13:39 GMT wrote:
Suggestion :
instead of using the JkMount/JkUnMount way of configuring your forwarded 
URLs, use the way described here :
in the section : Using SetHandler and Environment Variables

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

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

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:
For additional commands, e-mail:

View raw message