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:
@@ -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 = '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user