summaryrefslogtreecommitdiff
path: root/templates/site.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-05 18:24:37 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-05 18:24:37 -0200
commit03a5f804a20b98ccea8598aa7893c914c7fa1ee6 (patch)
treecde0c37956aeda7b821704aa40df4fd011d487b0 /templates/site.erb
parentf78584ac4599e7a019e53f35ce3592006a6a612c (diff)
downloadpuppet-apache-03a5f804a20b98ccea8598aa7893c914c7fa1ee6.tar.gz
puppet-apache-03a5f804a20b98ccea8598aa7893c914c7fa1ee6.tar.bz2
Better RewriteRule
Diffstat (limited to 'templates/site.erb')
-rw-r--r--templates/site.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/site.erb b/templates/site.erb
index f02dbe0..25dd22d 100644
--- a/templates/site.erb
+++ b/templates/site.erb
@@ -5,7 +5,7 @@
DocumentRoot <%= docroot %>
<% if https_redirect != false %>
RewriteEngine On
- RewriteRule (.*) https://<%= title %>.<%= hosting_domain %>$1<% end %>
+ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
<% 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| -%>