aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-02-07 13:26:54 +0000
committerPascal Terjan <pterjan@gmail.com>2016-02-07 13:26:54 +0000
commitdcf52317265f200fb2b95918bd4a84f5e2c2279f (patch)
tree06d87225ddf3fcdaa58a2eda531b75b6c8e68e2a /modules/apache
parent04576b1caefe5c86eb046bccb36f0535d18801b3 (diff)
downloadpuppet-dcf52317265f200fb2b95918bd4a84f5e2c2279f.tar
puppet-dcf52317265f200fb2b95918bd4a84f5e2c2279f.tar.gz
puppet-dcf52317265f200fb2b95918bd4a84f5e2c2279f.tar.bz2
puppet-dcf52317265f200fb2b95918bd4a84f5e2c2279f.tar.xz
puppet-dcf52317265f200fb2b95918bd4a84f5e2c2279f.zip
Make vhost_base compatible with Apache 2.4
Diffstat (limited to 'modules/apache')
-rw-r--r--modules/apache/templates/vhost_base.conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/apache/templates/vhost_base.conf b/modules/apache/templates/vhost_base.conf
index ad01d96f..c6feade5 100644
--- a/modules/apache/templates/vhost_base.conf
+++ b/modules/apache/templates/vhost_base.conf
@@ -40,7 +40,12 @@ end
<%- end -%>
<Location />
- Allow from all
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ Allow from all
+ </IfModule>
</Location>
</VirtualHost>