Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7161

update bindingservice.beans/META-INF/bindings-jboss-beans.xml to rewrite redirectPort only conditionally

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.M3
    • JBossAS-5.1.0.GA
    • Other
    • None

      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

              bstansbe@redhat.com Brian Stansberry
              work_registries John Doe (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: