Domain mapping

2007-08-23 Thread Jens Rosenberg

Hi

How do I setup domains for webapplications-mapping in tomcat5.5? 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. Should i define both host and context 
element or... and where?


I have a DNS A-record pointing to the ip-adress of the server running my 
tomcat, but I cant make tomcat handle the requests correctly. My hosting 
operator suggests introducing an Apache for this purpuse, which I 
believe is quite an overkill. Or is it?


Hope you can help med out with a good tutorial or explanation of where 
to start.


Regards - Jens Rosenberg

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Domain mapping

2007-08-23 Thread Caldarale, Charles R
 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]