[jboss-dev-forums] [JBoss Web Development] - HTTPS Redirect URL Problem
pkrogel
do-not-reply at jboss.com
Mon Nov 19 14:10:42 EST 2012
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&containerType=14&container=2112]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121119/16666c99/attachment.html
More information about the jboss-dev-forums
mailing list