My Web.xml config in my SSL confugured web app(deployed on tomcat(8080 port)) is as follows
<security-constraint>
<web-resource-collection>
<web-resource-name>HTTPSOnly</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
When I tried https://google.com, I am getting the page
When I tried http://google.com, it automatically redirects to https://google.com:8443. So I am not getting the page.
I want it to be redirect to https://google.com instead of https://google.com:8443.
Kindly help me. Will let u know if u need any further details.
I got it.
Removed SSL redirectPort from server.xml of tomcat
like,