Commit 06963b7f authored by mh's avatar mh
Browse files

set default open_basedir setting for git based wikis

parent b0f90cc2
......@@ -101,6 +101,11 @@ define webhosting::php::mediawiki(
nagios_use => $nagios_use,
}
$mediawiki_php_settings = {
open_basedir => "/var/www/mediawiki:/var/www/vhosts/${name}/www:/var/www/upload_tmp_dir/${name}:/var/www/session.save_path/${name}",
}
$real_php_settings = merge($mediawiki_php_settings,$php_settings)
apache::vhost::php::mediawiki{"${name}":
ensure => $ensure,
domainalias => $domainalias,
......@@ -114,7 +119,7 @@ define webhosting::php::mediawiki(
default_charset => $default_charset,
run_mode => $run_mode,
ssl_mode => $ssl_mode,
php_settings => $php_settings,
php_settings => $real_php_settings,
php_options => $php_options,
vhost_mode => $vhost_mode,
vhost_source => $vhost_source,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment