aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/vhost_simple.conf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/apache/templates/vhost_simple.conf')
-rw-r--r--modules/apache/templates/vhost_simple.conf11
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/apache/templates/vhost_simple.conf b/modules/apache/templates/vhost_simple.conf
index ec39b192..77b55287 100644
--- a/modules/apache/templates/vhost_simple.conf
+++ b/modules/apache/templates/vhost_simple.conf
@@ -1,9 +1,14 @@
<VirtualHost *:80>
- ServerName <%= name %>
- DocumentRoot <%= location %>
+ ServerName <%= @name %>
+ 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>