Support Apache 2.4 ACLs

We need to use Require all granted in our directory that hosts the
Kibana files otherwise we get 403 forbidden when trying to access the
content.

Change-Id: I2e14ba113705f3fabaa4920704589da0f9abe978
This commit is contained in:
Clark Boylan 2016-05-26 15:15:42 -07:00
parent 7904825abb
commit 0a62118c0e
2 changed files with 9 additions and 0 deletions

View File

@ -76,6 +76,12 @@ class kibana::js (
}
}
# The Apache mod_version module only needs to be enabled on Ubuntu 12.04
# as it comes compiled and enabled by default on newer OS, including CentOS
if !defined(Httpd::Mod['version']) and $::operatingsystem == 'Ubuntu' and $::operatingsystemrelease == '12.04' {
httpd::mod { 'version': ensure => present }
}
httpd::vhost { 'kibana':
docroot => "${base_path}/src",
vhost_name => $vhost_name,

View File

@ -35,6 +35,9 @@
DocumentRoot <%= docroot %>
<Directory <%= docroot %>>
Options -Multiviews
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>