> From: Jens Rosenberg [mailto:[EMAIL PROTECTED] 
> Subject: Domain mapping
> 
> How do I setup domains for webapplications-mapping in 
> tomcat5.5?

Why do you want to?  It's not normally necessary, unless you want
separate sets of webapps available for each domain.  If you do want
segregated webapps, define a <Host> element in server.xml for each
domain, with a unique appBase attribute for each <Host>.  The webapps
for each domain should be placed in the corresponding appBase.

> I can read that there should be defined a context-element in
> either META-INF/context.xml or server.xml file, but I find it
> very hard to find a working solution or example.

Don't put <Context> elements in server.xml - that's only there for
compatibility with older levels.  The standard Tomcat download includes
numerous sample applications, some with <Context> elements (they're not
required for simple webapps).

> Should i define both <host> and <context> 
> element or... and where?

It's <Host> and <Context> - case matters.  Read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

> My hosting operator suggests introducing an Apache for 
> this purpuse, which I believe is quite an overkill.

By "Apache", I'll presume you mean httpd, since Tomcat is also an Apache
product.  Yes, it is overkill, and will do little for you other than add
overhead.

 - 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