title: Redirecting http to https when http port is blocked
body: <p>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:</p>
  
  <pre><code>                 &lt;security-constraint&gt;
                           &lt;web-resource-collection&gt;
                           &lt;web-resource-name&gt;restricted methods&lt;/web-resource-name&gt;
                               &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
                               &lt;http-method&gt;OPTIONS&lt;/http-method&gt;
                               &lt;http-method&gt;DELETE&lt;/http-method&gt;
                               &lt;http-method&gt;TRACE&lt;/http-method&gt;
                            &lt;/web-resource-collection&gt;
                            &lt;auth-constraint/&gt;
                  &lt;/security-constraint&gt;
  </code></pre>
  
  <p>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?</p>