module-nginx/templates/vhost/vhost_location_proxy.erb

25 lines
813 B
Text
Raw Normal View History

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| -%>
2013-05-06 11:38:34 +02:00
<%= key %> <%= value %>;
<% end -%><% end -%>
2013-07-17 20:42:57 +02:00
<% if @proxy_cache -%>
proxy_cache <%= @proxy_cache %>;
proxy_cache_valid <%= @proxy_cache_valid %>;
<% end -%>
2013-07-17 20:42:57 +02:00
proxy_pass <%= @proxy %>;
proxy_read_timeout <%= @proxy_read_timeout %>;
<% if @proxy_method -%>
proxy_method <%= @proxy_method %>;
<% end -%>
<% if @proxy_set_body -%>
proxy_set_body <%= @proxy_set_body %>;
<% end -%>
<% @rewrite_rules.each do |rewrite_rule| -%>
rewrite <%= rewrite_rule %>;
<% 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| -%>
<%= key %> <%= value %>;
<% end -%><% end -%>
2011-06-07 00:25:04 +02:00
}