From 15950ea9d3e3edbbed1533958a7d00205a95bcc8 Mon Sep 17 00:00:00 2001 From: kaihowl Date: Tue, 23 Feb 2016 08:21:45 +0100 Subject: [PATCH] [MODULES-1628] Fix mod rewrite typo in examples There is no HTTPS_HOST variable in mod_rewrite --- examples/vhost.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vhost.pp b/examples/vhost.pp index 0cf8da75c4..79ac994019 100644 --- a/examples/vhost.pp +++ b/examples/vhost.pp @@ -151,7 +151,7 @@ { comment => 'redirect non-SSL traffic to SSL site', rewrite_cond => ['%{HTTPS} off'], - rewrite_rule => ['(.*) https://%{HTTPS_HOST}%{REQUEST_URI}'], + rewrite_rule => ['(.*) https://%{HTTP_HOST}%{REQUEST_URI}'], } ] } @@ -183,7 +183,7 @@ port => '80', docroot => '/var/www/sixteenth', rewrite_cond => '%{HTTPS} off', - rewrite_rule => '(.*) https://%{HTTPS_HOST}%{REQUEST_URI}', + rewrite_rule => '(.*) https://%{HTTP_HOST}%{REQUEST_URI}', } apache::vhost { 'sixteenth.example.com ssl old rewrite': servername => 'sixteenth.example.com',