[jboss-jira] [JBoss JIRA] Created: (JBAS-7161) update bindingservice.beans/META-INF/bindings-jboss-beans.xml to rewrite redirectPort only conditionally
Juergen none (JIRA)
jira-events at lists.jboss.org
Thu Aug 6 16:17:29 EDT 2009
update bindingservice.beans/META-INF/bindings-jboss-beans.xml to rewrite redirectPort only conditionally
--------------------------------------------------------------------------------------------------------
Key: JBAS-7161
URL: https://jira.jboss.org/jira/browse/JBAS-7161
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Other
Affects Versions: JBossAS-5.1.0.GA
Environment: 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,amd64
Reporter: Juergen none
Attachments: bindings-jboss-beans.xml
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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list