2 Replies Latest reply on Jul 24, 2007 8:06 AM by raydecampo

    Native APR, SSL and a multihomed machine


      I have a multihomed server on which I have installed two identical versions of JBoss 4.2.0. I have also installed JBoss native on each in order to use the Tomcat APR optimizations. I also set up an HTTPS connector on each server. I use the -b option on each instance in order to bind it to a dedicated network card. Running each server by itself prevents no issues. When I try to start the second server when the first is already running, I get a port binding error (the port configurations on each instance are identical, since they will be using a different NIC).

      A little investigation reveals that the HTTPS connector is listening on all available IP addressed. Thus when the second server starts, it fails to bind to the HTTPS port. When I adjust the HTTPS port on the second server I no longer get this error.

      Is there a configuration beyond the -b start up parameter I should be using to prevent the SSL connector from listening on all IP addresses?

      The configuration for the connector, as detailed at http://tomcat.apache.org/tomcat-6.0-doc/apr.html, is below:

       <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
       maxThreads="150" scheme="https" secure="true"
       clientAuth="false" sslProtocol="TLS"
       SSLPassword="notmyrealpassword" />