diff --git a/templates/vhost/vhost_header.erb b/templates/vhost/vhost_header.erb index 274a6599e..d0d7382b7 100644 --- a/templates/vhost/vhost_header.erb +++ b/templates/vhost/vhost_header.erb @@ -35,7 +35,7 @@ server { } <% end -%> <% if @index_files.count > 0 -%> - index <% Array(index_files).each do |i| %> <%= i %><% end %>; + index <% Array(@index_files).each do |i| %> <%= i %><% end %>; <% end -%> access_log <%= @access_log_real %>; diff --git a/templates/vhost/vhost_ssl_header.erb b/templates/vhost/vhost_ssl_header.erb index a7ba50442..efe9f3a17 100644 --- a/templates/vhost/vhost_ssl_header.erb +++ b/templates/vhost/vhost_ssl_header.erb @@ -21,7 +21,7 @@ server { auth_basic_user_file "<%= @auth_basic_user_file %>"; <% end -%> <% if @index_files.count > 0 -%> - index <% Array(index_files).each do |i| %> <%= i %><% end %>; + index <% Array(@index_files).each do |i| %> <%= i %><% end %>; <% end -%> access_log <%= @ssl_access_log %>;