I have HTTP to HTTPS redirect working correctly on our JBOSS 5.0.1 Server by adding the following to web.xml:
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?
When you call this url https://example.com
You are doing this:
The ports 443 and 80 are of default for protocol http.
You have two way:
1) You configure the port in Jboss 80 or 443
2) You install Apache and configure mod_jk mod_proxy mod_cluster as load balancing