Force Apache SSL Redirection from HTTP for iRedMail: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
(Created page with "== Force SSL == To redirect all HTTP traffic to use SSL. <pre> vi /etc/httpd/conf.d/ssl.conf </pre> Add the following lines to the bottom of the file before the close of </Vi...")
 
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 10:04, 6 July 2016

Force SSL

To redirect all HTTP traffic to use SSL.

vi /etc/httpd/conf.d/ssl.conf

Add the following lines to the bottom of the file before the close of </VirtualHost>

RequestHeader set "x-webobjects-server-port" "443"
RequestHeader set "x-webobjects-server-name" "mail.myserver.com"
RequestHeader set "x-webobjects-server-url" "https://mail.myserver.com"