diff options
author | mh <mh@immerda.ch> | 2011-02-25 15:36:15 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-02-25 15:36:15 +0100 |
commit | c67f0b2119e0e3fb2101f722550d805534c37f91 (patch) | |
tree | d64504982393c6d5f917be8e4ac1856583220dcd /templates/vhosts/default.erb | |
parent | 616fcb124ebe423929b70ca153a858a238a16846 (diff) |
fixing template foo
Diffstat (limited to 'templates/vhosts/default.erb')
-rw-r--r-- | templates/vhosts/default.erb | 5 |
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 %> |