Skip to content

Commit

Permalink
add proper array support for require
Browse files Browse the repository at this point in the history
now valid access rules are generated from directory template
  • Loading branch information
Roman Garifullin authored and Morgan Haskel committed Feb 26, 2015
1 parent 8b993ba commit 7c6199c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/vhost/_directories.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
<%- end -%>
<%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
<%- if directory['require'] and directory['require'] != '' -%>
Require <%= Array(directory['require']).join(' ') %>
<%- Array(directory['require']).each do |require| -%>
Require <%= require %>
<%- end -%>
<%- end -%>
<%- if directory['auth_require'] -%>
Require <%= directory['auth_require'] %>
Expand Down

0 comments on commit 7c6199c

Please sign in to comment.