Update vhost_location_fastcgi.erb

This commit is contained in:
Abdoul Bah 2013-08-15 18:56:05 +02:00
parent f87d4770df
commit 0be9924df5

View file

@ -1,5 +1,5 @@
location <%= @location %> { location <%= @location %> {
<% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%> <% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each_line do |key,value| -%>
<%= key %> <%= value %>; <%= key %> <%= value %>;
<% end -%><% end -%> <% end -%><% end -%>
<% if defined? @www_root -%> <% if defined? @www_root -%>
@ -9,14 +9,14 @@
fastcgi_split_path_info <%= @fastcgi_split_path %>; fastcgi_split_path_info <%= @fastcgi_split_path %>;
<% end -%> <% end -%>
<% if @try_files -%> <% if @try_files -%>
try_files <% @try_files.each do |try| -%> <%= try %> <% end -%>; try_files <% @try_files.each_line do |try| -%> <%= try %> <% end -%>;
<% end -%> <% end -%>
include <%= @fastcgi_params %>; include <%= @fastcgi_params %>;
fastcgi_pass <%= @fastcgi %>; fastcgi_pass <%= @fastcgi %>;
<% if defined? @fastcgi_script %> <% if defined? @fastcgi_script %>
fastcgi_param SCRIPT_FILENAME <%= @fastcgi_script %>; fastcgi_param SCRIPT_FILENAME <%= @fastcgi_script %>;
<% end -%> <% end -%>
<% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%> <% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each_line do |key,value| -%>
<%= key %> <%= value %>; <%= key %> <%= value %>;
<% end -%><% end -%> <% end -%><% end -%>
} }