> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: Two DNS Entries Two Sites?
> 
> A week ago, I created another context (in the server.xml) for a
> dev-site, of my live site, and I am using that for QA. I want to run a
> second real-web site off this box, and same Tomcat. It has its own DNS
> entry, and want to know if this is doable? If so, what should I read
> about as far as configuration. I had read about the Engine, Server,
> Context but have not really seen how to put two site DNS entries in.

You may be confusing "context" with "web site".  A context is a web
application; a given host may have many web apps (and therefore
contexts).  Tomcat, by default, listens on all IP addresses that are
routed to the box, and all web apps (contexts) are available to all
those IP addresses.  If you want to segregate web apps by IP address,
set up multiple <Host> tags in server.xml, and configure the appropriate
IP addresses for each.  Each host can (and probably should) have its own
appBase setting to avoid inadvertent sharing of web apps across hosts.
Take a look at:
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html

By the way, putting <Context> tags in server.xml is strongly discouraged
in the 5.5.x levels.

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to