ejabberd: Disable DirectoryIndex in bosh path for Apache 2.4
See https://bz.apache.org/bugzilla/show_bug.cgi?id=53929
This commit is contained in:
parent
dc87bed659
commit
29b570ca6b
2 changed files with 6 additions and 5 deletions
|
@ -251,8 +251,7 @@ class ejabberd(
|
|||
mode => "0644",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
source => "puppet:///modules/ejabberd/htaccess",
|
||||
require => File[$htdocs],
|
||||
content => template("ejabberd/htaccess.erb"),
|
||||
}
|
||||
|
||||
apache::configfile { "ejabberd.conf":
|
||||
|
@ -280,7 +279,6 @@ define ejabberd::configwebhost($htdocs) {
|
|||
file { "/srv/www/https/${name}/bosh":
|
||||
ensure => link,
|
||||
target => $htdocs,
|
||||
require => File["/srv/www/https/${name}"],
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
<% if scope.lookupvar('apache::version') == '2.4' -%>
|
||||
DirectoryIndex disabled
|
||||
<% end -%>
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteRule ^(.*)$ http://localhost:5280/http-bind/$1 [P,L]
|
Loading…
Add table
Add a link
Reference in a new issue