aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2016-03-14 22:23:31 +0200
committerThomas Backlund <tmb@mageia.org>2016-03-14 22:23:31 +0200
commit2362f0803cbe7514214b5abc1b96c971e349c302 (patch)
tree0dafcef068b127f1162129c6a85b3a73da03ce19 /modules/apache
parent6105921f210f0b9d32cd5a239dfac27f13b4fd1d (diff)
downloadpuppet-2362f0803cbe7514214b5abc1b96c971e349c302.tar
puppet-2362f0803cbe7514214b5abc1b96c971e349c302.tar.gz
puppet-2362f0803cbe7514214b5abc1b96c971e349c302.tar.bz2
puppet-2362f0803cbe7514214b5abc1b96c971e349c302.tar.xz
puppet-2362f0803cbe7514214b5abc1b96c971e349c302.zip
apache: fix vhost_simple for apache 2.4
Diffstat (limited to 'modules/apache')
-rw-r--r--modules/apache/templates/vhost_simple.conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/apache/templates/vhost_simple.conf b/modules/apache/templates/vhost_simple.conf
index ec39b192..afc443de 100644
--- a/modules/apache/templates/vhost_simple.conf
+++ b/modules/apache/templates/vhost_simple.conf
@@ -3,7 +3,12 @@
DocumentRoot <%= location %>
<Location />
- Allow from all
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ Allow from all
+ </IfModule>
</Location>
</VirtualHost>