diff options
Diffstat (limited to 'modules/apache')
-rw-r--r-- | modules/apache/manifests/vhost/base.pp | 3 | ||||
-rw-r--r-- | modules/apache/templates/vhost_base.conf | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/apache/manifests/vhost/base.pp b/modules/apache/manifests/vhost/base.pp index 1ddc00cc..27a19998 100644 --- a/modules/apache/manifests/vhost/base.pp +++ b/modules/apache/manifests/vhost/base.pp @@ -7,7 +7,8 @@ define apache::vhost::base ($content = '', $access_logfile = false, $error_logfile = false, $options = [], - $enable_public_html = false) { + $enable_public_html = false, + $enable_location = true) { include apache::base $httpd_logdir = '/var/log/httpd' $filename = "${name}.conf" diff --git a/modules/apache/templates/vhost_base.conf b/modules/apache/templates/vhost_base.conf index c6feade5..84c8f918 100644 --- a/modules/apache/templates/vhost_base.conf +++ b/modules/apache/templates/vhost_base.conf @@ -39,6 +39,7 @@ end </Directory> <%- end -%> +<%- if enable_location -%> <Location /> <IfModule mod_authz_core.c> Require all granted @@ -47,5 +48,6 @@ end Allow from all </IfModule> </Location> +<%- end -%> </VirtualHost> |