You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Praveen <ga...@yahoo.com> on 2005/11/17 02:49:36 UTC

Multiple .war files in single tomcat instance

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 sample1.com and
sample2.com to point to this particular instance of
the tomcat server, now when I hit sample1.com, 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.

Thanks,
Praveen



 




		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Multiple .war files in single tomcat instance

Posted by Rob Hills <ro...@netpaver.com.au>.
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 sample1.com and
> > sample2.com to point to this particular instance of
> > the tomcat server, now when I hit sample1.com, 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:

http://tomcat.apache.org/tomcat-5.5-doc/config/host.html

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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Multiple .war files in single tomcat instance

Posted by Simon Kitching <sk...@obsidium.com>.
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 sample1.com and
> sample2.com to point to this particular instance of
> the tomcat server, now when I hit sample1.com, 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.

Regards,

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org