Force Apache SSL Redirection from HTTP for iRedMail

From KlavoWiki
Revision as of 10:21, 5 July 2016 by David (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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"