Skip to content

Commit

Permalink
Merge pull request #281 from Mayflower/allow_deny_fastcgi
Browse files Browse the repository at this point in the history
Add allow/deny rules to fastcgi template
  • Loading branch information
James Fryman committed Mar 24, 2014
2 parents b6b7acc + 08d46d0 commit 53e9fe5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/vhost/vhost_location_fastcgi.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_custom_cfg_prepend -%><% @location_custom_cfg_prepend.each do |key,value| -%>
<% if value.is_a?(Hash) -%><% value.each do |subkey,subvalue| -%>
<% Array(subvalue).each do |asubvalue| -%>
Expand Down

0 comments on commit 53e9fe5

Please sign in to comment.