Skip to content

Commit 0939d03

Browse files
committed
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) <[email protected]>
1 parent d21391e commit 0939d03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/jobs/cron_tasks.inc.http.30.nginx.php

+5
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ protected function getVhostContent($domain, $ssl_vhost = false) {
328328
return '';
329329
}
330330

331+
// check whether the customer is deactivated an NO docroot for deactivated users has been set
332+
if ($domain['deactivated'] == '1' && empty(Settings::Get('system.deactivateddocroot'))) {
333+
return '# Customer deactivated and a docroot for deactivated users hasn\'t been set.' . "\n";
334+
}
335+
331336
$vhost_content = '';
332337
$_vhost_content = '';
333338

0 commit comments

Comments
 (0)