From: Silvio Rhatto Date: Fri, 18 May 2012 22:11:12 +0000 (-0300) Subject: Using protocol instead of hardcoded https X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=497082ae8f6811ba98a92a16e26073d8f13557f5;p=puppet-apache.git Using protocol instead of hardcoded https --- diff --git a/templates/site.erb b/templates/site.erb index 46c16d3..586b158 100644 --- a/templates/site.erb +++ b/templates/site.erb @@ -28,7 +28,7 @@ <% if canonical != false %> RewriteCond %{HTTP_HOST} !=<%= canonical %> [NC] RewriteCond %{HTTP_HOST} !="" - RewriteRule ^/(.*) https://<%= canonical %>/$1 [L,R=301] + RewriteRule ^/(.*) <%= protocol %>://<%= canonical %>/$1 [L,R=301] <% end %> # end vhost for <%= title %>