From 28f9f74c1b4dbc7a65f1e43e0b4aded1ce5b7e21 Mon Sep 17 00:00:00 2001 From: Stephen Date: Mon, 5 Aug 2013 08:33:36 +0100 Subject: [PATCH] Template variables should start with @ --- templates/vhost/vhost_header.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/vhost/vhost_header.erb b/templates/vhost/vhost_header.erb index e4d966f61..8e8dfb885 100644 --- a/templates/vhost/vhost_header.erb +++ b/templates/vhost/vhost_header.erb @@ -1,11 +1,11 @@ server { listen <%= @listen_ip %>:<%= @listen_port %><% if @listen_options %> <%= @listen_options %><% end %>; <% # check to see if ipv6 support exists in the kernel before applying %> -<% if @ipv6_enable == 'true' && (defined? ipaddress6) %> - listen [<%= ipv6_listen_ip %>]:<%= @ipv6_listen_port %> <% if @ipv6_listen_options %><%= @ipv6_listen_options %><% end %> ipv6only=on; +<% if @ipv6_enable == 'true' && (defined? @ipaddress6) %> + listen [<%= @ipv6_listen_ip %>]:<%= @ipv6_listen_port %> <% if @ipv6_listen_options %><%= @ipv6_listen_options %><% end %> ipv6only=on; <% end %> server_name <%= @rewrite_www_to_non_www ? @name.gsub(/^www\./, '') : @server_name.join(" ") %>; -<% if defined? auth_basic -%> +<% if defined? @auth_basic -%> auth_basic "<%= @auth_basic %>"; <% end -%> <% if defined? auth_basic_user_file -%>