We have a java web application running in Apache Tomact 8.0.36. HTTP port 80 is configured and HTTPS port 443 is configured. Redirection to HTTPS is configured in web.xml as below and it worked fine:
<security-constraint>
<web-resource-collection>
<web-resource-name>restricted methods</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>OPTIONS</http-method>
<http-method>DELETE</http-method>
<http-method>TRACE</http-method>
</web-resource-collection>
<auth-constraint/>
</security-constraint>
Now, port 80 has been blocked in the server where the application deployed and redirection to HTTPS is not happening . Is there any way to make HTTPS redirection to work when HTTP port is blocked?