fix wrong vhost creation with nginx when customer is deactivated and no docroot for deactivated users was given, fixes #1565

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-11-12 08:42:32 +01:00
parent d21391e8ba
commit 0939d032a5

View File

@@ -328,6 +328,11 @@ class nginx extends HttpConfigBase {
return ''; return '';
} }
// check whether the customer is deactivated an NO docroot for deactivated users has been set
if ($domain['deactivated'] == '1' && empty(Settings::Get('system.deactivateddocroot'))) {
return '# Customer deactivated and a docroot for deactivated users hasn\'t been set.' . "\n";
}
$vhost_content = ''; $vhost_content = '';
$_vhost_content = ''; $_vhost_content = '';