Hi,
I am trying to configure two tomcat servers on a single win2k host with two
nic with 4 ip addresses.
A 4.0.6 server configured on IP 192.168.1.1 and 192.168.2.1 on port 80 and
443 with no AJP connector activated.
A 4.1.12 server configured on IP 192.168.1.2 and 192.168.2.2 on port 8080
and 8433 with a Coyote/JK2 AJP connector configured for 192.168.2.2:8009 as
per the config entry below.
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 192.168.2.2:8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
address="192.168.2.2"
/>
But from the netstat listed below, the AJP connector is globbing all IP
addresses by binding to 0.0.0.0:8009 when I was expecting it to bind to
192.168.2.2:8009.
java.exe:2320 TCP 192.168.1.1:80 0.0.0.0:0 LISTENING
java.exe:2320 TCP 192.168.1.1:443 0.0.0.0:0 LISTENING
java.exe:2320 TCP 192.168.2.1:80 0.0.0.0:0 LISTENING
java.exe:2320 TCP 192.168.2.1:443 0.0.0.0:0 LISTENING
java.exe:2320 TCP 127.0.0.1:8005 0.0.0.0:0 LISTENING
java.exe:2580 TCP 192.168.1.2:8080 0.0.0.0:0 LISTENING
java.exe:2580 TCP 192.168.1.2:8443 0.0.0.0:0 LISTENING
java.exe:2580 TCP 192.168.2.2:8080 0.0.0.0:0 LISTENING
java.exe:2580 TCP 192.168.2.2:8443 0.0.0.0:0 LISTENING
java.exe:2580 TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING
java.exe:2580 TCP 127.0.0.1:8015 0.0.0.0:0 LISTENING
This way if I wanted to run an AJP connector on 192.168.2.1:8009, I should
be able to.
(Why AJP you ask. I will be setting up Apache on 192.168.1.2:80,
192.168.1.2:443 and 192.168.2.2:80, 192.168.2.2:443)
Is this a bug/feature of the Coyote/JK2 AJP connector not honouring the
"address=" attribute?
Anthony
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>