> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Subject: Virtual hosts with standalone tomcat 5.5.9
> 
> > I tried simply going like this
> > <Host name="www.mysite.com">
> > <Context path="" docBase="/var/www/server1" reloadable="true"
debug="0" />
> > </Host>
> > <Host name="mail.external.mysite.com">
> > <Context path="" docBase="/var/www/server2" reloadable="true"
debug="0" />
> > </Host>
> 
> I believe you are only allowed to have one Context path="" 
> because this defines the default webapp - where the requests 
> go if they don't match any other context path.

There is a default webapp per host, not per Tomcat.  (However, the path
attribute must not be used unless the <Context/> entry is in server.xml,
and that is strongly discouraged these days.)  To quote from the Tomcat
server reference doc for the path attribute:

"The context path of this web application, which is matched against the
beginning of each request URI to select the appropriate web application
for processing. All of the context paths within a particular Host must
be unique. If you specify a context path of an empty string (""), you
are defining the default web application for this Host, which will
process all requests not assigned to other Contexts. The value of this
field must not be set except when statically defining a Context in
server.xml, as it will be infered from the filenames used for either the
.xml context file or the docBase."

> I'm not sure how you could implement real virtual hosts on Tomcat

Now that's an interesting turn of phrase: "real virtual hosts".

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to