1 Reply Latest reply on Nov 21, 2012 10:37 AM by erasmomarciano

    HTTPS Redirect URL Problem

    pkrogel

      I have HTTP to HTTPS redirect working correctly on our JBOSS 5.0.1 Server by adding the following to web.xml:

      <security-constraint>

      <web-resource-collection>

            <web-resource-name>Secure Content</web-resource-name>

            <url-pattern>/*</url-pattern>

            </web-resource-collection>

            <user-data-constraint>

            <transport-guarantee>CONFIDENTIAL</transport-guarantee>

       

            </user-data-constraint>

       

      </security-constraint>

       

       

      The problem is that the URL in the response does not work correctly on all of our user's networks.

      If I go to http://example.com,

      I get redirected to https://example.com:7000

      That url does not work for all of our users. I need to remove the port specification from the URL. (just https://example.com)

      How do I configure the redirect to omit the port from the URL?