2013-07-17 20:42:57 +02:00
|
|
|
location <%= @location %> {
|
2013-08-15 21:07:06 +02:00
|
|
|
<% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%>
|
2013-07-31 23:07:59 +02:00
|
|
|
<%= key %> <%= value %>;
|
|
|
|
<% end -%><% end -%>
|
|
|
|
<% if defined? @www_root -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
root <%= @www_root %>;
|
2013-08-02 19:07:53 +02:00
|
|
|
<% end -%>
|
2013-07-19 17:56:03 +02:00
|
|
|
<% if @fastcgi_split_path -%>
|
|
|
|
fastcgi_split_path_info <%= @fastcgi_split_path %>;
|
|
|
|
<% end -%>
|
2013-07-18 01:29:49 +02:00
|
|
|
<% if @try_files -%>
|
2013-11-22 05:04:39 +01:00
|
|
|
try_files<% @try_files.each do |try| -%> <%= try %><% end -%>;
|
2013-07-18 01:29:49 +02:00
|
|
|
<% end -%>
|
2013-07-17 20:42:57 +02:00
|
|
|
include <%= @fastcgi_params %>;
|
|
|
|
fastcgi_pass <%= @fastcgi %>;
|
2013-07-31 23:07:59 +02:00
|
|
|
<% if defined? @fastcgi_script %>
|
2013-07-17 20:42:57 +02:00
|
|
|
fastcgi_param SCRIPT_FILENAME <%= @fastcgi_script %>;
|
2013-03-28 15:04:50 +01:00
|
|
|
<% end -%>
|
2013-08-15 21:07:06 +02:00
|
|
|
<% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%>
|
2013-07-31 23:07:59 +02:00
|
|
|
<%= key %> <%= value %>;
|
|
|
|
<% end -%><% end -%>
|
2013-04-16 18:12:32 +02:00
|
|
|
}
|
2013-07-31 23:07:59 +02:00
|
|
|
|