Thursday 15 September 2011

ssl - Force Tomcat to redirect to HTTPS without changing web.xml security constraints -


I already know how to configure Tomcat so that it redirects the HTTP request to HTTPS:

  1. Enable and configure SSL connector
  2. Set the correct "redirectPort" attribute on a non-SSL connector
  3. Modify the web.xml and select "Transport-Guarantee "To" confidential "

    My question is, what is the web? Is there a way to get the same result without modifying the XML file ?

    I'm looking for a solution where I do not have to change the web app, which has been positioned as a war file. Changes like adding a sublet filter or implementing redirects within the web application are not an option.

    Thanks for any help! Consider implementing custom tomac for redirecting

    Stephen

    . It's a good start.

No comments:

Post a Comment