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:
parent
7904825abb
commit
0a62118c0e
@ -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,
|
||||
|
@ -35,6 +35,9 @@
|
||||
DocumentRoot <%= docroot %>
|
||||
<Directory <%= docroot %>>
|
||||
Options -Multiviews
|
||||
<IfVersion >= 2.4>
|
||||
Require all granted
|
||||
</IfVersion>
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
||||
|
Loading…
x
Reference in New Issue
Block a user