49b5b79b76
* Options location_cfg_append and location_cfg_prepend added to fastcgi template * Option www_root is optional now * Options logging fixed in http template * Auth_basic fixed in SSL vhost header
15 lines
558 B
Text
15 lines
558 B
Text
location <%= @location %> {
|
|
<% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%>
|
|
<%= key %> <%= value %>;
|
|
<% end -%><% end -%>
|
|
<% if @proxy_cache -%>
|
|
proxy_cache <%= @proxy_cache %>;
|
|
proxy_cache_valid <%= @proxy_cache_valid %>;
|
|
<% end -%>
|
|
proxy_pass <%= @proxy %>;
|
|
proxy_read_timeout <%= @proxy_read_timeout %>;
|
|
<% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%>
|
|
<%= key %> <%= value %>;
|
|
<% end -%><% end -%>
|
|
}
|
|
|