-
Feature Request
-
Resolution: Done
-
Major
-
JBossAS-5.1.0.GA
-
None
-
22:07:47,787 INFO [ServerInfo] Java version: 1.6.0_14,Sun Microsystems Inc.
22:07:47,788 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
22:07:47,788 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 14.0-b16,Sun Microsystems Inc.
22:07:47,788 INFO [ServerInfo] OS-System: Linux 2.6.9-22.0.1.ELsmp,amd6422:07:47,787 INFO [ServerInfo] Java version: 1.6.0_14,Sun Microsystems Inc. 22:07:47,788 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_14-b08) 22:07:47,788 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 14.0-b16,Sun Microsystems Inc. 22:07:47,788 INFO [ServerInfo] OS-System: Linux 2.6.9-22.0.1.ELsmp,amd64
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
-