I've got an Apache and Tomcat running and I use mod_jk
to bind them. I have a Tomcat worker called "tc1" and the following setup on my VirtualHost
:
JkMount /* tc1
JkUnMount /*.png tc1
JkUnMount /*.gif tc1
JkUnMount /*.css tc1
JkUnMount /*.js tc1
That way Tomcat serves all requests apart the ones for static files.
Now I want to use mod_rewrite
and do something very simple such as:
RewriteEngine On
RewriteRule ^/foo$ /bar [L]
to rewrite the dynamic pageview at "/foo" to "/bar", but it doesn't work because all urls processed by mod_rewrite
do not end up into mod_jk
.
I've read the Apache Tomcat Connector documentation and tried all of the JkOptions
but nothing changed.
Does anyone know how to solve this?
Does the mod_jk
and mod_rewrite
load order and declarations ordering play any role in URL processing?
thanks