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: Subdomains in tomcat 7
Date Thu, 17 Jan 2013 18:08:59 GMT
> From: Christopher Schultz [mailto:chris@christopherschultz.net] 
> Subject: Re: Subdomains in tomcat 7

> > <Host name="www.portal.com" appBase="ptt" unpackWARs="true"
> > autoDeploy="true"> <Context path="" docBase="ptt-client/ROOT"/> 
> > </Host>

> Only one problem: You shouldn't be using server.xml to define
> <Context>s. Instead, put your WAR file into ptt/ROOT.war and let it
> auto-deploy. This will simplify your configuration.

> > <Host name="www.painel.portal.com" appBase="ptt" unpackWARs="true"
> > autoDeploy="true">

> Problem: you have two hosts with the same appBase. This will prevent
> you from having two separate ROOT webapps.

> > <Context path="" docBase="ptt-manager/ROOT"/>

Better suggestion: change the appBase values to ptt/ptt-client and ptt/ptt-manager, respectively.
 Remove the <Context> elements, as Chris noted, and leave the two ROOT.war files where
they are.

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


Mime
View raw message