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:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
