directory.erb 360 B

12345678910111213
  1. <% if defined? @www_root -%>
  2. root <%= @www_root %>;
  3. <% end -%>
  4. <% if defined? @autoindex -%>
  5. autoindex <%= @autoindex %>;
  6. <% end -%>
  7. <% if @index_files.count > 0 -%>
  8. index <% Array(@index_files).each do |i| %> <%= i %><% end %>;
  9. <% end -%>
  10. <% if @try_files -%>
  11. try_files<% @try_files.each do |try| -%> <%= try %><% end -%>;
  12. <% end -%>