On Fri, 17 Aug 2001, Jim Handwerk wrote:

> All,
> 
> I'm attempting to setup TC 3.2.3 and TC 4 standalone on the same
> machine, same port, different IP addresses - RH 7.1 machine has 2
> NICs.
> 
> When I try to start up the second instance, I get a BindException.  
> In the respective server.xml files, I have virtual hosts set up to
> handle the particular assigned ip address, but I don't know where to
> go from here.
> 
> Searched thru the user list archive, but everyone is trying to use
> differing ports - which I've been able to make work, but when you get
> to a non-assigned port, it gives a 'HTTP Status 500 - No Host matches
> server name 10.160.112.14' rather than just ignore it.
> 
> Any help is appreciated.
> 
> Thanks,
> Jim Handwerk
> 
> 

Setting up virtual hosts correctly isn't going to help the "bind
exception" problem.  By default, all versions of Tomcat attempt to bind to
all IP addresses on the server.  You'll need to configure each of them to
bind only to one.

On Tomcat 4 you do that like this:

  <Connector port="8080 address="10.160.112.14" ...>

(There is something similar for Tomcat 3.x, but I don't have the docs in
front of me)

Craig


Reply via email to