Apache and Tomcat work for me, and I use mod_jk to bind them. I have a Tomcat worker called "tc1" and the following setting on my VirtualHost :
JkMount /* tc1 JkUnMount /*.png tc1 JkUnMount /*.gif tc1 JkUnMount /*.css tc1 JkUnMount /*.js tc1
Thus, Tomcat serves all requests except those for static files.
Now I want to use mod_rewrite and do something very simple, for example:
RewriteEngine On RewriteRule ^/foo$ /bar [L]
rewrite the dynamic pageview on "/ foo" to "/ bar", but this will not work because all the URLs processed by mod_rewrite do not end with mod_jk .
I read the Apache Tomcat Connector documentation and tried all of JkOptions , but nothing changed.
Does anyone know how to solve this?
Does ordering and mod_jk and mod_rewrite roles in URL processing?
thanks
tomcat apache mod-rewrite mod-jk
cherouvim
source share