summaryrefslogtreecommitdiff
path: root/templates/vhosts/default.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/default.erb')
-rw-r--r--templates/vhosts/default.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/vhosts/default.erb b/templates/vhosts/default.erb
index 172518c..22aa391 100644
--- a/templates/vhosts/default.erb
+++ b/templates/vhosts/default.erb
@@ -6,12 +6,13 @@ vhost_parts = case ssl_mode
else [:normal,:ssl]
end
vhost_parts.each do |vhost_part|
- # we need this variable in included templates
- @vhost_part = vhost_part
+ scope.unsetvar('vhost_part')
+ scope.setvar('vhost_part',vhost_part)
%>
<VirtualHost *:<%= vhost_part == :ssl ? '443' : '80' %> >
<%= scope.function_template('apache/vhosts/partials/header_default.erb') %>
+
<%= scope.function_template('apache/vhosts/partials/logs.erb') %>
<%- if ssl_mode == 'force' && vhost_part == :normal %>