tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: Running Tomcat 3.2.3 (or 4.0) on a multi-homed machine.
Date Thu, 25 Oct 2001 14:17:43 GMT
On Tomcat 3.2.3, try:

        <Connector className="org.apache.tomcat.service.PoolTcpConnector">
            ...
            <Parameter name="inet" 
                value="123.123.123.123"/>
            ...
        </Connector>

On Tomcat 3.3 (and I believe 4.x) add:

    address="123.123.123.123"

to the connector.  For Tomcat 3.3, that would be:

    <Http10Connector port="8080" address="123.123.123.123" ... />

Hope that helps.

Cheers,
Larry



-----Original Message-----
From: Prasanna Uppaladadium [mailto:prasanna@kirusa.com]
Sent: Wednesday, October 24, 2001 3:44 PM
To: tomcat-user@jakarta.apache.org
Subject: Running Tomcat 3.2.3 (or 4.0) on a multi-homed machine.


Hello.

Is there a way to run Tomcat 3.2.3 or 4.0 so that the server will listen 
on a specific host interface (IP address)?

For example, my machine has two IP addresses (123.123.123.123 and 
111.111.111.111). I would like to run two instances of Tomcat on port 80 
each one listening on one of the interfaces respectively. I specifically 
don't want to use Virtual Hosting.

The server.xml file on both versions of Tomcat seem to take a port 
parameter but not a host parameter.

One way to solve this of course is to use Apache as a front for Tomcat. 
But I would like to use Tomcat as a standard alone web server if at all 
this is possible.

Thanks for any help.
Prasanna.

Mime
View raw message