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:
parent
efd4267ef4
commit
eec99fedb9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user