> From: Peter McNeil [mailto:pe...@mcneils.net]
> Subject: Re: Virtual host set-up woes

> 1. edit conf/server.xml and add a <host> section inside the <engine> tag 
> that looks like this:-
> <Host name="yourhost.com" appBase="yourhostapps"
>              unpackWARs="true" autoDeploy="true"
>              xmlValidation="false" xmlNamespaceAware="false">
> </Host>
>
> 2. create a directory inside your tomcat home directory called 
> "yourhostapps" as defined above e.g. mkdir $tomcathome/yourhostapps

Note that the above needs to be repeated for each desired host.

> 4. create a file in $tomcathome/conf/Catalina/yourhost called ROOT.xml,
> making sure ROOT is all upper case, that contains the context for your
> app e.g.
> 
> <Context path=""

You were good up to that point.  The path attribute is not allowed here; remove 
it.

The other point is that each <Host> name must have a DNS entry or else your 
clients will never be able to reach it.  (Alternatively, you could require your 
clients to make entries in their hosts files - assuming your clients can find 
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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to