> From: Christopher Schultz [mailto:ch...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to