pkrogel [
https://community.jboss.org/people/pkrogel] created the discussion
"HTTPS Redirect URL Problem"
To view the discussion, visit:
https://community.jboss.org/message/777242#777242
--------------------------------------------------------------
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/ http://example.com,
I get redirected to
https://example.com:7000/ 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 https://example.com)
How do I configure the redirect to omit the port from the URL?
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/777242#777242]
Start a new discussion in JBoss Web Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]