tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Hills" <>
Subject Re: Multiple .war files in single tomcat instance
Date Thu, 17 Nov 2005 03:36:40 GMT
Hi Praveen, Simon

On 17 Nov 2005 at 14:57, Simon Kitching wrote:

> Praveen wrote:
> > Hi - Iam trying to deploy multiple .war files on a
> > single tomcat instance, but was wondering if theres a
> > way in tomcat, to use the domain name and pick up the
> > corresponding war file. 
> > For eg: I have two war files sample1.war and
> > sample2.war deployed on a single tomcat instance, and
> > lets say I have DNS entries and
> > to point to this particular instance of
> > the tomcat server, now when I hit, how can
> > I configure tomcat to pick sample1.war and similarly
> > for sample2.
> > 
> > Right now in order to hit sample1.war, I type in my
> > URL "localhost:8080/sample1".
> > 
> > Thanks in advance for any help on this.
> This looks like a case for having an Apache HTTPD server in front of 
> tomcat. The mod_rewrite httpd module can do this I expect.

I'm sure that would work, but you don't have to install Apache to do 
what Praveen wants to do.

Tomcat provides "Virtal Host" functionality that does exactly what 
Praveen wants to do.

Praveen, I suggest you start by reading the Tomcat documentation 
_for your version of Tomcat_ about Virtual Hosts.  The following link is 
for Tomcat 5.5 - if you're not using Tomcat 5.5, look up the equivalent 
page for your version:

If you have any specific problems after reading that, feel free to post 
them back to the list.

Rob HIlls
NetPaver Pty Ltd

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message