tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Virtual Hosts and 'Hot' Redeployment
Date Thu, 03 Jul 2008 15:38:04 GMT
> From: Martin Harrigan [mailto:martinharrigan@gmail.com]
> Subject: Virtual Hosts and 'Hot' Redeployment
>
> Any ideas why a redeployed webapp might work from
> http://1.2.3.4/myWebApp but not from
> http://www.otherserver.com?

Your configuration is invalid, so predictable operation is not possible.  To fix the config,
you first need to give each <Host> a separate, non-overlapping appBase.  Then, deploy
your myWebApp as ROOT (not myWebApp) in the "otherserver" appBase.  If you then want to access
the "otherserver" default webapp from localhost, create a <Context> element in conf/Catalina/localhost/myWebApp.xml
with a docBase attribute whose value is the "otherserver"'s [appBase]/ROOT directory (or [appBase]/ROOT.war,
if appropriate).  Note that this is a separate run-time instance of myWebApp - there's no
way to avoid that.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
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
View raw message