[jboss-as7-dev] https redirect-port calculated value or automatic retrieval instead of a fixed value?

Brian Stansberry brian.stansberry at redhat.com
Tue May 15 10:39:48 EDT 2012


There's a JIRA to improve this by providing an alternate configuration 
that takes a socket binding reference instead of a port:

https://issues.jboss.org/browse/AS7-4295

On 5/15/12 7:42 AM, Frank Langelage wrote:
> Hello,
>
> to secure the connection I added a https connector to the web-subsystem
> and the socket-binding for it.
> To get the redirect from http to https working I had to add
> redirect-port="9143" to the http connector.
>
> See also https://community.jboss.org/thread/199579.
>
> The standard ports (8080, 8443) are occupied by an instance with an
> older JBoss-version on our server.
> The same will be the case for customer sites later.
> So I use"-Djboss.socket.binding.port-offset=700" to force a port offset
> from 8080 to 8780 etc.
> Works perfect for all socket-bindings.
>
> But as far as I could find out, the redirect-port for the http-connector
> has to be a fixed value and is not influenced by the given offset.
> That's a great pitty, because this would require to use copies of
> standalone-full.xml then to only provide this port number.
>
>
> It would be great if it were possible to use an expression like
> "8443+${jboss.socket.binding.port-offset}".
> Or if the "redirect-port" would be obsolete and automatically retrieved
> by the system from the https connector and the socket-binding.
>
> Any supporters for such an enhancement?
> Or did I miss something and this is possible already today (AS7 7.2.0)?
>
> Frank
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


-- 
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat


More information about the jboss-as7-dev mailing list