comparison modules/apache/templates/vhost/_block.erb @ 0:956e484adc12

Initial public release of Puppet configs
author IBBoard <dev@ibboard.co.uk>
date Sat, 16 Aug 2014 19:47:38 +0000
parents
children 37675581a273
comparison
equal deleted inserted replaced
-1:000000000000 0:956e484adc12
1 <% if @block and ! @block.empty? -%>
2
3 ## Block access statements
4 <% if @block.include? 'scm' -%>
5 # Block access to SCM directories.
6 <DirectoryMatch .*\.(svn|git|bzr)/.*>
7 <%- if @apache_version >= '2.4' -%>
8 Require all denied
9 <%- else -%>
10 Deny From All
11 <%- end -%>
12 </DirectoryMatch>
13 <% end -%>
14 <% end -%>