2013-07-17 20:42:57 +02:00
|
|
|
location <%= @location %> {
|
|
|
|
<% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%>
|
2012-10-03 01:35:52 +02:00
|
|
|
<%= key %> <%= value %>;
|
|
|
|
<% end -%><% end -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
root <%= @www_root %>;
|
2013-05-20 16:30:32 +02:00
|
|
|
<% if @try_files -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
try_files <% @try_files.each do |try| -%> <%= try %> <% end -%>;
|
2013-05-20 16:30:32 +02:00
|
|
|
<% end -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
<% if @index_files -%>
|
|
|
|
index <% @index_files.each do |i| %> <%= i %><% end %>;
|
2013-05-20 16:30:32 +02:00
|
|
|
<% end -%>
|
|
|
|
<% if defined? auth_basic -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
auth_basic "<%= @auth_basic %>";
|
2013-05-20 16:30:32 +02:00
|
|
|
<% end -%>
|
|
|
|
<% if defined? auth_basic_user_file -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
auth_basic_user_file <%= @auth_basic_user_file %>;
|
2013-05-20 16:30:32 +02:00
|
|
|
<% end -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
<% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%>
|
2012-10-03 01:35:52 +02:00
|
|
|
<%= key %> <%= value %>;
|
|
|
|
<% end -%><% end -%>
|
2013-05-20 16:30:32 +02:00
|
|
|
}
|