JBoss Community

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

created by pstackle in JBoss AS 7 Development - View the full discussion

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:


<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

 

 

socket-binding-group:


<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>

 

 

Thanks

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community