Question : Tomcat Virtual Hosting

Anyone know how best to do Hostname-Based virtual tomcat hosting.

ie: I want www.xxxx.com to route to tomcat instance one, and
www2.xxxx.com to route to tomcat instance two.

I do not want to put tomcat behind apache.
I need to be able to start and stop the tomcat instances (ie, they need to run in separate JVMs)

Answer : Tomcat Virtual Hosting

i don't think it's possible without the apache or some other sortof-proxy. The two tomcat instances would have to listen at the same port - and that's impossible. So you'll either have to go with one instance (and filter the requests based on domain ) or put apache in front of tomcats.
If you do - you'll be able to have 2 instances and route the requests through apache and jk_module
Random Solutions  
 
programming4us programming4us