> From: Susan Richards [mailto:[EMAIL PROTECTED] 
> Subject: Tomcat 5.5 configuration
> 
> In Tomcat 5.0.28, I had this in my server.xml:
> <Host name="test-infonline.matc.edu" 
> appBase="/www/apps/tomcat/webapps">
>   <Context path="" docBase="."/>
> </Host>

The above - having docBase equal to appBase - was never intended to
work; that it ever did anything useful at all was an accident.  In
current versions of Tomcat, do not put <Context> elements in server.xml,
and do not use the path or docBase attributes, except in special
circumstances.

> I really want to have 3 domain names on one server and be 
> able to type in all three urls and go to the correct web
> application.

If you mean that the three domain names each have a separate default
webapp, then you should set up three <Host> elements in server.xml, one
for each desired domain name.  Within each <Host> define a unique value
for its appBase directory.  Under each appBase directory, install the
appropriate webapp as ROOT.war or in the ROOT directory (case sensitive
naming).  No filter required.

 - 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