2 Replies Latest reply on Mar 26, 2012 4:01 PM by Brian Stansberry

    Allow web connector redirect-port attribute to reference a socket-binding name

    pstackle Newbie

      Is there any plan or possibility to allow for a connector's redirect-port attribute to reference a socket-binding name instead of a port number?

       

      The primary use case I want this for is to configure a connector on the http socket and then redirect to the https socket without having to specify the actual port number outside of the socket-binding-group.

       

      Web subsystem:

      {code:xml}

      <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect-port="https"/>

      <connector name="https" protocol="HTTP/1.1" socket-binding="https" scheme="https" secure="true">

      ...

      </connector

      {code}

       

      socket-binding-group:

      {code:xml}

      <socket-binding-group name="standard-sockets" default-interface="public">

        <socket-binding name="http" port="${http.default.port:80}"/>

        <socket-binding name="https" port="${https.default.port:443}"/>

      ...

      </socket-binding-group>

      {code}

       

      Thanks