tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dOE <doep...@gmail.com>
Subject Re: How can I hard code the IP address on a single server with multiple Tomcat instances.
Date Wed, 29 Oct 2008 14:49:18 GMT
Hi Serge,

Below are the values from both of my server.xml files.  I specified the
address that the port should listen on, and I am unable to open *
http://192.168.100.2:8080* (GOOD!).  When I attempt to open *
http://192.168.100.2:8180* I get a 400, and *http://192.168.100.1:8180*  the
"request" returns "Page Cannot Be Found"(GOOD!).

192.168.100.1 has ports 8080, 8009
192.168.100.2 has ports 8180, 8109

The correct ports are open, its just that I can not open the site on
192.168.100.2 through Tomcat.
Should I have only edited one server.xml, rather than hard coding the IP in
both?

(Server 1) 192.168.100.1
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080"
    maxThreads="150"
    minSpareThreads="25"
    maxSpareThreads="75"
    enableLookups="false"
    redirectPort="8443"
    acceptCount="100"
    debug="0"
    connectionTimeout="20000"
    disableUploadTimeout="true"
    address="192.168.100.1" />

(Server 2) 192.168.100.2
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 -->
    <Connector port="8180"
    maxThreads="150"
    minSpareThreads="25"
    maxSpareThreads="75"
    enableLookups="false"
    redirectPort="8543"
    acceptCount="100"
    debug="0"
    connectionTimeout="20000"
    disableUploadTimeout="true"
    address="192.168.100.2" />










On Wed, Oct 29, 2008 at 9:40 AM, Serge Fonville <serge.fonville@gmail.com>wrote:

> Place inside a <Service> element<Connector port="80" protocol="HTTP/1.1"
> connectionTimeout="20000"
>  redirectPort="443"
> address="127.0.0.1"/>
> and the output of netstat contains an entry for 127.0.0.1:80 instead of
> the usual 0.0.0.0:80
>
> Regards,
>
> Serge Fonville
>
> On Wed, Oct 29, 2008 at 2:31 PM, dOE <doepain@gmail.com> wrote:
>
>> Serge thanks for the reply...
>>
>> so to hard code the IP its just a matter of ONLY adding <Connector
>> address='
>> 192.168.1.1'>  ?
>>
>> The online document site does not give any syntax examples.
>>
>> On Wed, Oct 29, 2008 at 9:17 AM, Serge Fonville <serge.fonville@gmail.com
>> >wrote:
>>
>> > There is an address attribute inside the connector that specifies the
>> > address of the listening socket
>> > http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
>> > http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html
>> >
>> > Hope this helps
>> >
>> > Regards,
>> >
>> > Serge Fonville
>> >
>> > On Wed, Oct 29, 2008 at 2:06 PM, dOE <doepain@gmail.com> wrote:
>> >
>> >> I have a server that I am hosting multiple Tomcat servers from, and the
>> >> issue I am running into is... - I have multiple IP's bound to the
>> servers
>> >> interface, Tomcat _1 has port 8080 specified as its connector port.
>>  The
>> >> second Tomcat_2 has port 8180 set as its conector port in its
>> server.xml,
>> >> but regardless of these custom ports I am only able to reach Tomcat_1
>> >> through 8080, and 8180.  Is it possible to hard code the IP you want
>> that
>> >> particular instance to listen on?
>> >>
>> >
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message