Hi,
Nah, you can't do this sanely with mod_rewrite, simply because of the way Apache is
structured. Apache offers the URI to mod_jk first, and if mod_jk accepts that it will
handle it, then it won't even touch mod_rewrite.
If it has gone as far as mod_rewrite, it is too late for mod_jk to
it will be available soon. That would solve the whole how do I change
server.xml on the fly problem.
John
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 5:55 AM
To: Tomcat Users List
Subject: Re: Apache vhost + Tomcat sharing
Hi,
Ah, thanks. That worked. Actually, this was the first thing I tried, but I
realised I was defining the Host tags inside the localhost one. (Oops :)
Unfortunatly, it still leaves me with a problem. I really don't want to have to
shut down tomcat and restart everytime I add a new user to the
Hi Chris -
I've seen this situation before, but don't have a way to add vhosts to
server.xml on the fly. One thing that comes to mind would be to use
mod_rewrite to (somehow) rewrite a *.jsp URI with some vhost-specific
info in it that Tomcat can pick up and use to direct to the right
Hi C. Davies -
I can't help you with mod_webapp, which I avoid like the plague, but it
would certainly work with mod_jk. Each Apache VirtualHost block should
contain a JkMount something like this:
JkMount /*.jsp ajp13
which means that any page ending in *.jsp will be passed to Tomcat.
Then,
Hi,
Sadly this doesn't appear to work.
Both domains get redirected to Tomcat's docBase (in this case /www) and you get
a 404.
Am I formatting the Context tags wrong? Can you give me an example of how they
are supposed to look?
Thanks,
C.Davies
Quoting Lajos [EMAIL PROTECTED]:
Hi C. Davies -
Hi Chris -
Oops - I realize my mistake. I was thinking something entirely
different. You should have two Host blocks, one for each vhost, one
with appBase of /www/cust1 and one with appBase of /www/cust2. Sorry for
leading you the wrong way.
If that still doesn't work, email me your