From ca151970e67500e2adc733a8f4d3ec037b2de4f4 Mon Sep 17 00:00:00 2001 From: pessoa <prp@pobox.com> Date: Mon, 17 Feb 2014 19:51:14 +0000 Subject: [PATCH] add location_custom_cfg_prepend support --- templates/vhost/vhost_location_proxy.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/vhost/vhost_location_proxy.erb b/templates/vhost/vhost_location_proxy.erb index aa389d263..d6420c3f4 100644 --- a/templates/vhost/vhost_location_proxy.erb +++ b/templates/vhost/vhost_location_proxy.erb @@ -5,6 +5,9 @@ <% if @location_deny -%><% @location_deny.each do |deny_rule| -%> deny <%= deny_rule %>; <% end -%><% end -%> +<% if @location_custom_cfg_prepend -%><% @location_custom_cfg_prepend.each do |value| -%> + <%= value %> +<% end -%><% end -%> <% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%> <%= key %> <%= value %>; <% end -%><% end -%> @@ -25,6 +28,9 @@ <% end -%> <% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%> <%= key %> <%= value %>; +<% end -%><% end -%> +<% if @location_custom_cfg_append -%><% @location_custom_cfg_append.each do |value| -%> + <%= value %> <% end -%><% end -%> }