tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: Listening on multiple ips
Date Fri, 12 Aug 2005 16:25:43 GMT
In the time it took you to write this email you could have tested this!! ;o) Looks reasonable
so long as you want to connect direct to Tomcat on port 80 for each IP ... try it out and
get back to us.

Allistair.

> -----Original Message-----
> From: David Erickson [mailto:halcyon@ratemod.com]
> Sent: 12 August 2005 17:20
> To: tomcat-user@jakarta.apache.org
> Subject: Listening on multiple ips
> 
> 
> Hi I was just wondering what the best way to setup tomcat to listen to
> multiple ip addresses is?  I have a box with 1 nic that has 3 
> ip addresses,
> the first address port 80 is in use by apache so I want it to 
> listen on the
> 2nd and 3rd address.  I also need to have different webapps 
> be loaded for
> each of the addresses it is listening on.  From looking at 
> the conf file I
> was wondering if I can just create two connectors for each ip 
> address ie:
> 
>     <Connector address="X.X.X.61" port="80"
>                maxThreads="150" minSpareThreads="25" 
> maxSpareThreads="75"
>                enableLookups="false" redirectPort="443" 
> acceptCount="100"
>                debug="0" connectionTimeout="20000" 
>                disableUploadTimeout="true" />
> 
>     <Connector address="X.X.X.62" port="80"
>                maxThreads="150" minSpareThreads="25" 
> maxSpareThreads="75"
>                enableLookups="false" redirectPort="443" 
> acceptCount="100"
>                debug="0" connectionTimeout="20000" 
>                disableUploadTimeout="true" />
> 
> And then in the engine create two Host elements:
> 
>       <Host name="X.X.X.61" debug="0" appBase="webapps-61"
>        unpackWARs="true" autoDeploy="true"
>        xmlValidation="false" xmlNamespaceAware="false">
> 
>       <Host name="X.X.X.62" debug="0" appBase="webapps-62"
>        unpackWARs="true" autoDeploy="true"
>        xmlValidation="false" xmlNamespaceAware="false">
> 
> 
> Would this work?
> 
> Thanks,
> David
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


---------------------------------------------------------------------
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