> From: Alexander Diedler [mailto:adied...@tecracer.de]
> Subject: AW: Multiple Context and Websites
> 
> AD : But we want to use different Hostnames, it cannot be placed in the
> localhost?

Just using different host names is a DNS issue; it does not require multiple 
<Host> elements in Tomcat.  You only need multiple <Host>s if you want separate 
sets of webapps for each domain.

> AD: Some Websites (Applications) should be hosted on this Tomcat e.g.
> applicationA.domain.de, applicationB.domain.de and every Website has it
> own directory on HDD. But it is not inside the Tomcat Folders.

You still seem to be confusing webapps with domains.  You can have multiple 
webapps for one domain, a single default webapp for each domain, or multiple 
webapps for each domain; all combinations are possible.  What do you want?

Can you provide a set of example URLs and the webapps you expect those URLs to 
reference?  If you want a single default webapp for each domain, you'll need 
one <Host> element for each, with a separate appBase setting for each.  Inside 
each appBase directory should be a ROOT subdirectory (or ROOT.war file) 
containing the webapp for that domain.  The <Context> element for each should 
be in ROOT/META-INF/context.xml.

You will also need to deploy a separate copy of the manager app for each <Host>.

You definitely should read the link Hassan provided.

 - 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