JBoss Community

HTTPS Redirect URL Problem

created by pkrogel in JBoss Web Development - View the full discussion

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?

Reply to this message by going to Community

Start a new discussion in JBoss Web Development at Community