Sharing the Point

Office 365, SharePoint, Project Server – Support Blog

How to Redirect all http requests to https on Tomcat by default

Posted by Ashraf on November 23, 2010

***Considering that you already enable SSL with proper certificate.

To auto redirect all of your webserver requests from http to https just paste the following to your tomcat installation folder\conf\web.xml file and restart the service.

<web-resource-name>Protected Context</web-resource-name>
<!– auth-constraint goes here if you requre authentication –>

Now browse http://localhost and it will automatically go to https://localhost , for example.

Sorry, the comment form is closed at this time.

%d bloggers like this: