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: problem with getcontext and context.xml
Date Sun, 29 Oct 2006 15:27:04 GMT
> From: BRUN S├ębastien [mailto:master@tyranz.com] 
> Subject: Fw: problem with getcontext and context.xml
> 
> i would like to setup a virtual host on tomcat

If you only have one host to worry about, you don't need to use virtual hosts.  You can also
use the alias attribute if you have multiple domains to support with identical apps.

> <Host name="vhost1.mydomain.com" debug="0"
> appBase="/usr/local/tomcat/webapps/myaccount/"

The above is incorrect.  The appBase parameter should point to the directory in which your
webapps are deployed, not to a specific webapp.

> /usr/local/tomcat/webapps/myaccount/META-INF/context.xml :
> <Context path="" docBase="" override="true">
> </Context>

When the <Context> element is in META-INF/context.xml, the path and docBase attributes
must not be used, since they are derivable from the location of the app.  If you want "myaccount"
to be the default webapp for the <Host>, change its name (subdirectory) to ROOT (case
sensitive).  Read some of this weekend's messages for more detail, especially this one:
http://marc.theaimsgroup.com/?l=tomcat-user&m=116198740004759&w=2

> Alert!: HTTP/1.1 400 No Host matches server name vhost1.mydomain.com

What is the defaultHost attribute set to in your <Engine>?

 - 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