Sharing the Point

Office 365, SharePoint, Project Server – Support Blog

Archive for November, 2010

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.

<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Context</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<!– auth-constraint goes here if you requre authentication –>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

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

Advertisements

Posted in System Administration, Windows Server | Tagged: , , , , , | Comments Off on How to Redirect all http requests to https on Tomcat by default

How to Export SSL certificate as PFX format from Internet Explorer

Posted by Ashraf on November 1, 2010

This post is moved to,

http://mroffice365.com/2010/11/how-to-export-ssl-certificate-as-pfx-format-from-internet-explorer/

 

Posted in System Administration, Windows Server | Tagged: , , , | 1 Comment »

 
%d bloggers like this: