wiki: Handle collab_webroot as array
This commit is contained in:
parent
86a06817bd
commit
6d3af17844
2 changed files with 6 additions and 4 deletions
|
@ -141,8 +141,8 @@ class wiki::collabbackend inherits wiki::graphingwiki::common {
|
|||
# List of collab virtual hosts.
|
||||
#
|
||||
# $collab_webroot:
|
||||
# Path to collab in webserver document root.
|
||||
# Defaults to "/srv/www/https/*/collab".
|
||||
# List of collab paths in webserver document root.
|
||||
# Defaults to ["/srv/www/https/*/collab"].
|
||||
#
|
||||
# $collab_jabberdomain:
|
||||
# Domain for jabber extauth.
|
||||
|
@ -364,7 +364,7 @@ class wiki::collab {
|
|||
}
|
||||
|
||||
if !$collab_webroot {
|
||||
$collab_webroot = "/srv/www/https/*/collab"
|
||||
$collab_webroot = ["/srv/www/https/*/collab"]
|
||||
}
|
||||
|
||||
apache::configfile { "collab.conf":
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<Directory "<%= @collab_webroot %>">
|
||||
<% @collab_webroot.each do |directory| -%>
|
||||
<Directory "<%= directory %>">
|
||||
Options +ExecCGI
|
||||
AllowOverride All
|
||||
</Directory>
|
||||
<% end -%>
|
||||
|
|
Loading…
Add table
Reference in a new issue