respect ip/port-default-vhost-config-for-every-domain and system-defaultvhost-conf setting in nginx and lighttpd, fixes #916
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -489,6 +489,15 @@ class lighttpd
|
||||
if ($domain['specialsettings'] != "") {
|
||||
$vhost_content.= $domain['specialsettings'] . "\n";
|
||||
}
|
||||
|
||||
if ($ipandport['default_vhostconf_domain'] != '') {
|
||||
$vhost_content.= $ipandport['default_vhostconf_domain'] . "\n";
|
||||
}
|
||||
|
||||
if ($this->settings['system']['default_vhostconf'] != '') {
|
||||
$vhost_content.= $this->settings['system']['default_vhostconf'] . "\n";
|
||||
}
|
||||
|
||||
$vhost_content.= '}' . "\n";
|
||||
|
||||
return $vhost_content;
|
||||
|
||||
@@ -455,6 +455,15 @@ class nginx
|
||||
if ($domain['specialsettings'] != "") {
|
||||
$vhost_content.= $domain['specialsettings'] . "\n";
|
||||
}
|
||||
|
||||
if ($ipandport['default_vhostconf_domain'] != '') {
|
||||
$vhost_content.= $ipandport['default_vhostconf_domain'] . "\n";
|
||||
}
|
||||
|
||||
if ($this->settings['system']['default_vhostconf'] != '') {
|
||||
$vhost_content.= $this->settings['system']['default_vhostconf'] . "\n";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
$vhost_content.= '}' . "\n\n";
|
||||
|
||||
Reference in New Issue
Block a user