> How can I get Tomcat to recognize virtual domains? This is trivial with
> Apache and I can get Apache to fetch the correct jsp but I cannot get timcat
> to process it. If I turn off tomcat, apache sends the jsp source. If I turn
> tomcat on, I get the error 404 page
Anything in the logs?
I'm not totally sure, but I think you need to match VHosts in your Apache and your
Tomcat. I'll be testing exactly that today with mod_jk2, Apache 2.0.46 and Tomcat
4.1.24. For mod_webapp it is definite - you need:
<Service ...>
<Connector ...>
<Engine ...>
<Host name="my-vhost.domain.com" ...>
<Context docBase="..." path=".."/>
....
</Host>
</Service>
I think the same applies to all other connectors: mod_jk, mod_jk2 and HTTP.
Nix.