0 Replies Latest reply on Nov 4, 2011 3:52 PM by Viggo Navarsete

    How can I add two https connectors in server.xml and also use the ports-xx feature

    Viggo Navarsete Expert

      Hi,

       

      I want to start my JBoss instance (JBoss 6.1.0.Final btw) with two https connectors defined in server.xml. My issue is that there is already another JBoss instance running on the same machine, so I'm thinking about using the ports-01/ports-02 feature to increment the ports automatically. The issue is how I can increment them when having more than one https connector.

       

      Ideally I would like it to be like this (but it won't work with the ports-01/ports-02) since I've hardcoded the ports:

          <Connector port="8443" address="${jboss.bind.address}"

               protocol="HTTP/1.1" SSLEnabled="true" maxHttpHeaderSize="8192"

               maxThreads="150" scheme="https" secure="true"

               clientAuth="false"

               keystoreFile="${jboss.server.home.dir}/conf/security/name-of-jks.jks"

               keystorePass="jks-password"

       

       

               truststoreFile="${jboss.server.home.dir}/conf/security/trust/testcacerts"

               truststorePass="truststore-password"

               sslProtocol="TLS"

               URIEncoding="UTF-8"      

                      />

       

       

          <!-- SSL/TLS Connector configuration for GTNet remoting -->

          <Connector port="9443" address="${jboss.bind.address}"

               protocol="HTTP/1.1" SSLEnabled="true" maxHttpHeaderSize="8192"

               maxThreads="150" scheme="https" secure="true"

               clientAuth="true"

               keystoreFile="${jboss.server.home.dir}/conf/security/name-of-jks.jks"

               keystorePass="jks-password"

               truststoreFile="${jboss.server.home.dir}/conf/security/trust/testcacerts"

               truststorePass="truststore-password"

               sslProtocol="TLS"      

                      />