3027d9f35a
Allows setting these directives on any location: * auth_basic * auth_basic_user_file
13 lines
360 B
Text
13 lines
360 B
Text
<% if defined? @www_root -%>
|
|
root <%= @www_root %>;
|
|
<% end -%>
|
|
<% if defined? @autoindex -%>
|
|
|
|
autoindex <%= @autoindex %>;
|
|
<% end -%>
|
|
<% if @index_files.count > 0 -%>
|
|
index <% Array(@index_files).each do |i| %> <%= i %><% end %>;
|
|
<% end -%>
|
|
<% if @try_files -%>
|
|
try_files<% @try_files.each do |try| -%> <%= try %><% end -%>;
|
|
<% end -%>
|