From f78584ac4599e7a019e53f35ce3592006a6a612c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 5 Dec 2011 18:21:44 -0200 Subject: Adding https_redirect parameter --- templates/site.erb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/site.erb') diff --git a/templates/site.erb b/templates/site.erb index be92907..f02dbe0 100644 --- a/templates/site.erb +++ b/templates/site.erb @@ -3,6 +3,9 @@ ServerName <%= title %>.<%= hosting_domain %> <% if server_alias != false %> ServerAlias <%= server_alias %><% end %> DocumentRoot <%= docroot %> + <% if https_redirect != false %> + RewriteEngine On + RewriteRule (.*) https://<%= title %>.<%= hosting_domain %>$1<% end %> <% if redirect_match != false %> RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= hosting_domain %>/<%= redirect_match %><% end %> <% if redirect != false %> Redirect <%= redirect %><% end %> <% if aliases != false %><% aliases.each do |map| -%> -- cgit v1.2.3