Skip to content

Commit

Permalink
Allow location_{allow,deny} to be used for proxy locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan Helmich committed Feb 7, 2014
1 parent 26a856e commit 05386c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/vhost/vhost_location_proxy.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
location <%= @location %> {
<% if @location_allow -%><% @location_allow.each do |allow_rule| -%>
allow <%= allow_rule %>;
<% end -%><% end -%>
<% if @location_deny -%><% @location_deny.each do |deny_rule| -%>
deny <%= deny_rule %>;
<% end -%><% end -%>
<% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%>
<%= key %> <%= value %>;
<% end -%><% end -%>
Expand Down

0 comments on commit 05386c2

Please sign in to comment.