fb880576a6
- fix tests related to whitespace changes
28 lines
No EOL
822 B
Text
28 lines
No EOL
822 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 -%>
|
|
<%- unless @rewrite_rules.nil? || @rewrite_rules.empty? -%>
|
|
|
|
<%- @rewrite_rules.each do |rewrite_rule| -%>
|
|
rewrite <%= rewrite_rule %>;
|
|
<%- end -%>
|
|
<% end -%>
|
|
<% if instance_variables.any? { |iv| iv.to_s.include? 'auth_basic' } -%>
|
|
|
|
<%- if @auth_basic -%>
|
|
auth_basic "<%= @auth_basic %>";
|
|
<%- end -%>
|
|
<%- if defined? @auth_basic_user_file -%>
|
|
auth_basic_user_file <%= @auth_basic_user_file %>;
|
|
<%- end -%>
|
|
<% end -%> |