You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Geir Magnusson Jr." <ge...@optonline.net> on 2001/12/05 03:17:05 UTC
Config Problem : VirtualHost, mod_rewrite and mod_jk
I am looking for some tips or advice on a configuration problem :
I wish to configure Apache with virtual hosts, and along with some URL
rewriting, and use mod_jk under httpd 1.3.x And Tomcat 3.2.3
I have successfully configured mod_jk and two <Hosts> in tomcat's
server.xml, and have verified that mod_jk is working, and the Hosts are
properly mapping requests to two separate webapps. So far, so good.
The problem comes in with mod_rewrite. This is an update from mod_jserv,
where
Action action1 /servlet/com.foo.FooServlet
<LocationMatch /*.html>
SetHandler action1
</LocationMatch>
Was used, and this worked fine.
When I switched to mod_jk and VirtualHosts, this resulted in recursion,
constructing a huge URL that Apache coughed up.
I then switched to mod_rewrite, and was able to (easily) construct a rewrite
rule to do the same thing. I used the [P] flag to force it to the proxy.
The problem is that mod_jk never 'picked up' the rewritten URL.
I have searched for some information on this, but to no avail. There were
references to putting the LoadModule for mod_jk before the LoadModule for
mod_rewrite, and I have tried that (and reverse) and other orderings of
mod_jk directives, rewrite directives, in the <VirtualHost>, outside of the
<VirtualHost> etc.
Any insight would be greatly appreciated...
Thanks in advance.
geir
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
You're going to end up getting pissed at your software
anyway, so you might as well not pay for it. Try Open Source.
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>