tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barnett, Brian W." <brian.barn...@pearson.com>
Subject How to configure Tomcat for multiple IPs
Date Tue, 13 Sep 2005 15:16:37 GMT
I have one NIC with 2 external IPs bound to it on a Windows XP box. The goal
is to have Tomcat service two web sites, each web site having it's own IP
address.

www.website1.com --> xxx.xxx.xxx.xxx
www.website2.com --> yyy.yyy.yyy.yyy

I have tried defining two <Service>'s with <Connector>'s that have
address="xxx.xxx.xxx.xxx" or "yyy.yyy.yyy.yyy" elements in them. The second
<Service> listed in server.xml never started. I would never see any log
information for it in any logs like I did for the first <Service> listed and
it was defined exactly the same as the first one with the exception of
address and the name elements, logfile names, etc.

I have tried one <Service> with multiple <Connector>'s, one <Connector>
for
"xxx.xxx.xxx.xxx" and one <Connector> for "yyy.yyy.yyy.yyy". I also had two
<Host> elements in this scenario, but got no indication that anything was
running on "yyy.yyy.yyy.yyy".

I tried configuring it as if I only had one IP, one <Service>, one
<Connector>, one <Engine> and one <Host> and did not specify the "address"
element. In this case, browsing to either xxx.xxx.xxx.xxx and
yyy.yyy.yyy.yyy produced the same results. They both went to website1. I'm
assuming this is because Tomcat will bind to all available IPs on the
specified port if an "address" is not specified.

Anyway, could someone please tell me the correct way to do this?

TIA,
Brian Barnett

**************************************************************************** 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message