diff --git a/templates/vhost/vhost_location_directory.erb b/templates/vhost/vhost_location_directory.erb index 9b8a6b511..ffb56091a 100644 --- a/templates/vhost/vhost_location_directory.erb +++ b/templates/vhost/vhost_location_directory.erb @@ -18,7 +18,7 @@ autoindex on; <% 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 -%> <% if defined? @auth_basic -%> auth_basic "<%= @auth_basic %>";