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',