Reputation: 233
I already know how to configure Tomcat so that it redirects HTTP requests to HTTPS:
My question is: Is there a way to achieve the same result WITHOUT modifying the web.xml file?
I'm looking for a solution where I do not have to change the web application, which is deployed as WAR file. So changes like adding a servlet filter or implementing the redirect inside the web application are not an option.
Thanks for any help!
Stephan
Upvotes: 2
Views: 3316
Reputation: 31
If you don't want to modify the application WAR file, you can also add this entry to the server WEB.XML (/tomcat/conf/web.xml
) and limit which webapps this parameter applies to?
Upvotes: 3