tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: mod_jk configuration question
Date Fri, 01 Oct 2004 14:27:20 GMT
You need to separate these into different <Service> elements in server.xml,
each with the corresponding <Connector> and <Host>.

Charlie

> -----Original Message-----
> From: Anto Paul [mailto:antopaul@gmail.com]
> Sent: Friday, October 01, 2004 10:01 AM
> To: Tomcat Users List
> Subject: mod_jk configuration question
> 
> Hi all,
> 
>   Is it possible to define two AJP13 connectors both listening at
> different ports and different addresses. These two addresses have
> different <Host> elements.
> 
> Config
> 
> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
>                port="8005" minProcessors="5" maxProcessors="75"
>                acceptCount="10" debug="5" 192.168.4.1/>
> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
>                port="8006" minProcessors="5" maxProcessors="75"
>                acceptCount="10" debug="5" address="192.168.4.2"/>
> 
> <Host name="localhost" debug="0" appBase="webapps"
>        unpackWARs="true" autoDeploy="true">
> 
>        <Context path="" docBase="ROOT" debug="0"/>
> 
> </Host>
> 
> <Host name="192.168.4.1" debug="0" appBase="192.168.4.1"
>        unpackWARs="true" autoDeploy="true">
> 
>       <Context path="" docBase="ROOT" debug="0"/>
> 
> </Host>
> 
> <Host name="192.168.4.2" debug="0" appBase="192.168.4.2"
>        unpackWARs="true" autoDeploy="true">
> 
> 
>        <Context path="" docBase="ROOT" debug="0"/>
> 
> </Host>
> 
> Both connectors should connect to respective hosts context.
> 
> When I tested this all JSP requests are going to the localhost.
> 
> 
> 
> rgds
> Anto Paul
> 
> --
> To strive,to seek,to find and not to yield
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

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