tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morgan Cox" <morganco...@gmail.com>
Subject Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..
Date Fri, 26 Sep 2008 14:11:17 GMT
Hi André - between yours and Mark's advice I have managed to do what i
needed to.

Thank you all - i'm amazed at the level of response... (half expected to
look in a month and see no responses.)

One last thing - If you upload the .war files with the tomcat manager /
host-manager is there a way to do this - or will it always involve hand
editing the server.xml file (and renaming directories). ?

Thanks again everybody - you've possible just saved my monitor from being
throw out the window.

Cheers !


2008/9/26 André Warnier <aw@ice-sa.com>

> Caldarale, Charles R wrote:
>
>> From: Morgan Cox [mailto:morgancoxuk@gmail.com]
>>> Subject: Re: How to have multiple domains/contexts with
>>> Tomcat ? they all go to same context ..
>>>
>>> Thanks for the advise - it seems that I do need to set the
>>> ROOT webapp for each virtual server
>>>
>>> - anyone got any ideas of how to do this.
>>>
>>
>> Read *all* of Andre's post - he already told you, in great detail, exactly
>> how to do it.
>>
>>  Well, not really about making them the ROOT application.
> So I'll try that one too, but someone should probably come after me to
> clean up.
>
> Morgan,
>
> if you followed the previous instructions, you now have this directory
> structure :
>
> (CATALINA_HOME being the top of your Tomcat installation)
>
> CATALINA_HOME/webapps
>         (with the standard webapps and documents from the original Tomcat
> installation)
>
> CATALINA_HOME/webapps-pink/mrpink/
>        with your "pink" webapp
>
> CATALINA_HOME/webapps-blue/mrblue/
>        with your "blue" webapp
>
> Turn off Tomcat.
>
> Under /webapps-pink/, rename the directory /mrpink to /ROOT (uppercase).
> Under /webapps-blue/, rename the directory /mrblue to /ROOT (uppercase).
>
> And restart Tomcat.
>
> And unless someone contradicts the above within the next 15 minutes, you
> should now be able to access your applications directly via
> http://www.mrpink.com[:port]
> and
> http://www.mrblue.com[:port]
>
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message