update conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml:
<xsl:when test="(name() = 'redirectPort' and . = '8443' and /Server/Service/Connector[@port = .])">
As ajp connector services apache who in turn runs on port 80, I change ajp connector redirect port from default 8443 to https 443 (serviced by apache).
bindings-jboss-beans.xml unconditionally rewrites this binding.
I suggest a conditional rewrite, to change (any connectors) redirectPort only if there exists a tomcat connector to that runs on that port:
/Server/Service/Connector[@port = .]
I added ". = '8443'" as well, due to the fact that current binding config only rewrites 8080, 8009 8443 and not all connectors in server.xml
so /Server/Service/Connector[@port = .] is not really needed but works in case you add additional connectors to server.xml and change bindings-jboss-beans.xml to rewrite them as well
- relates to
-
JBPAPP-4281 redirectPort is overwritten by the service binding manager
- Closed