Allow access to docroot for proxy exclusions

In a httpd::vhost::proxy resource, if proxy exclusions and a docroot
are specified, we should allow clients to access contents of the
docroot.

Change-Id: If30b192b8f2c16375aa534131217a5aa2a9ff47d
This commit is contained in:
Jeremy Stanley 2018-02-22 16:28:32 +00:00
parent efd4267ef4
commit eec99fedb9
1 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,13 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %>
<% if @proxyexclusions != nil and @docroot != nil %>
DocumentRoot <%= @docroot %>
<Directory <%= @docroot %>>
Order deny,allow
Allow from all
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
<% end %>
ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log
LogLevel warn