> From: mast [mailto:[EMAIL PROTECTED] 
> Subject: Re: problem with getcontext and context.xml
> 
> Yes but i have multiple vhost for different webapps.
> how can the server know that vhost1.mydomain.com is for 
> /usr/local/tomcat/webapps/myaccount for exemple
> and vhost2.mydomain.com to myaccount2

If you want different default apps for each host, you need to have
different appBase settings for each, and each appBase would have its own
ROOT subdirectory (or .war file).  Alternatively, you could put separate
ROOT.xml files in conf/[engine]/[host] for each host, each ROOT.xml
pointing to the proper default app via the docBase attribute.  You would
probably want to turn off autoDeploy and deployOnStartup in this case.

> Ok for the path and docBase so the context.xml is somethink like :
> <Context reloadable=true /> only ?

Correct.

> the defaultHost attribute is default.mydomain.com only.

Then where is the <Host> entry for default.mydomain.com?  If it's
missing, it's surprising Tomcat does anything.

> And nothing works , for default.mydomain.com i get : HTTP/1.1 
> 400 No Host matches server name default.mydomain.com
> for vhost1.mydomain.com i get only a 404 error

Which is what you should get, since you don't have a <Host> entry for
it.

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

Reply via email to