summaryrefslogtreecommitdiff
path: root/templates/vhosts/redirect/redirect.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/redirect/redirect.erb')
-rw-r--r--templates/vhosts/redirect/redirect.erb5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/vhosts/redirect/redirect.erb b/templates/vhosts/redirect/redirect.erb
index c788fdd..6fc6922 100644
--- a/templates/vhosts/redirect/redirect.erb
+++ b/templates/vhosts/redirect/redirect.erb
@@ -1,7 +1,10 @@
# <%= servername %>
<%- unless ssl_mode.to_s == 'only' then -%>
<VirtualHost *:80>
-<%= scope.function_template('apache/vhosts/partials/header_default.erb') %>
+<% scope.unsetvar('vhost_part')
+ scope.setvar('vhost_part',:normal) -%>
+ <%= scope.function_template('apache/vhosts/partials/header_default.erb') %>
+<% scope.unsetvar('vhost_part') -%>
<%= scope.function_template('apache/vhosts/partials/logs.erb') %>
<%- if ssl_mode.to_s == 'force' then -%>