tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <>
Subject Re: Help figuring out Virtual Hosts
Date Fri, 14 Oct 2005 02:09:38 GMT
Dola Woolfe wrote:

> All I want is for the user to be able to enter
> "serverA" in his/her browser and be forwarded to
> "http://server/appA/index.jsp" and the enter "serverB"
> and be forwarded to "http://server/appB/index.jsp".

There is no "forwarding" to be done.

You have two hosts, 'serverA' and 'serverB'; create Host elements
for each of them. Set the ROOT context of 'serverA' to your appA,
and the ROOT context of 'serverB' to your appB.

<Host name="serverA" appBase="/apps/A"></Host>

<Host name="serverB" appBase="/apps/B"></Host>

:: and "appA" is in '/apps/A/ROOT/', "appB" is in '/apps/B/ROOT'

You'll need e.g. either a '/apps/A/ROOT/META-INF/context.xml' file
or "$CATALINA_HOME/conf/serverA/ROOT.xml" for each context.

That's all there is to it. Really :-)

Hassan Schroeder -----------------------------
Webtuitive Design ===  (+1) 408-938-0567   ===

                          dream.  code.

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

View raw message