If I understand this setup correctly, you would be running one instance of Tomcat for all of your virtual hosts. This has the disadvantage that if one virtual host needs to be restarted, you will need
to restart Tomcat for all of your virtual hosts.

An alternative is to let Apache handle the virtual hosts and run multiple instances of Tomcat -- one instance per virtual host. This requires multiple mod_jk instances, each communicating across a unique port with an instance of Tomcat. Each Tomcat should be deployed to its own home dir w/ its own CATALINA_HOME pointing to that directory and with each Tomcat given its own start/stop.sh script that sets CATALINA_HOME. This is more complex to set up, and I'm not sure how many separate Tomcats this can handle, but it does allow you
to have something like:


and fix customer_n's problem without impacting other customers using the same box. Since I maintain a box with this setup, I can post sample config files if there is interest.

Pete Stevens wrote:

Try reading this,


It's a receipe for setting up tomcat to do virtual hosting and behave more
like apache with regard to virtual hosts.


Pete Stevens

On Tue, 16 Aug 2005, Mahesh S Kudva wrote:


I have setup Tomcat+Apache2+mod_jk. I have 3 application in war files
namely flie1.war, file2.war and file3.war. To deploy, I just put them in
the deploy folder and access then using the urls:
This works perfectly for me. I want to change this to simple urls as

I have also read the notes on Virtual hosting:

Even though I am not able to configure Tomcat to connect to the war files
as requested. How do I configure tomcat to connect to the correct war
file as requested?

Any help will be appreciated.

Regards & Thanks
Mahesh S Kudva

Robosoft Technologies - Partners in Product Development

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Pete Stevens

          I'm a shareware signature!  Send $2 if you use me, $10 for a manual.

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to