Okay, so I created two <host> elements in my server.xml...

      <Host name="app01.myserver.com"
            appBase="webapps"
            autoDeploy="true"
            deployOnStartup="true"
            deployXML="true"
            unpackWARs="true"
            xmlValidation="false"
            xmlNamespaceAware="false" />

      <Host name="app02.myserver.com"
            appBase="webapps"
            autoDeploy="true"
            deployOnStartup="true"
            deployXML="true"
            unpackWARs="true"
            xmlValidation="false"
            xmlNamespaceAware="false" />

...but how do I tell Tomcat which context to process? There will be no
context correct? Do I need a separate appBase directory for each <host>
element?

Thanks,
Bernie



> -----Original Message-----
> From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 15, 2005 12:10 PM
> To: Tomcat Users List
> Subject: RE: Virtual Hosts
> 
> 
> Simplistically ...
> 
> Configure Host elements inside your Engine. Create a folder 
> for each application within webapps. Set the Host docBase to each. 
> 
> Check out the online ref.
> 
> > -----Original Message-----
> > From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
> > Sent: 15 September 2005 17:07
> > To: [email protected]
> > Subject: Virtual Hosts
> > 
> > 
> > I am having trouble configuring virtual hosts in Tomcat 
> 5.5.9. I have 
> > two applications app01 and app02. I have 2 DNS entries 
> > app01.myserver.com and app02.myserver.com that both point to the 
> > machine on which Tomcat is running. How do I configure 
> Tomcat to serve 
> > from app01.war when app01.myserver.com is hit and app02.war when
> > app02.myserver.com is hit.
> > 
> > Thanks,
> > Bernie
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
> -------------------------------------------------------
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> -------------------------------------------------------
> </FONT> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLACK> 
> Disclaimer:  The information contained within this e-mail is 
> confidential and may be privileged. This email is intended 
> solely for the named recipient only; if you are not 
> authorised you must not disclose, copy, distribute, or retain 
> this message or any part of it. If you have received this 
> message in error please contact the sender at once so that we 
> may take the appropriate action and avoid troubling you 
> further.  Any views expressed in this message are those of 
> the individual sender.  QAS Limited has the right lawfully to 
> record, monitor and inspect messages between its employees 
> and any third party.  Your messages shall be subject to such 
> lawful supervision as QAS Limited deems to be necessary in 
> order to protect its information, its interests and its reputation.  
> 
> Whilst all efforts are made to safeguard Inbound and Outbound 
> emails, QAS Limited cannot guarantee that attachments are 
> virus free or compatible with your systems and does not 
> accept any liability in respect of viruses or computer 
> problems experienced. </FONT>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to