fix stats-alias-path for subdomains with parent having speciallogfile == 1

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-11-03 12:08:16 +01:00
parent 91c8fed5f4
commit 5abe663cbe
3 changed files with 3 additions and 3 deletions

View File

@@ -1035,7 +1035,7 @@ class Apache extends HttpConfigBase
$statTool = Settings::Get('system.traffictool');
$statDomain = "";
if ($domain['speciallogfile'] == '1') {
$statDomain = "/" . $domain['domain'];
$statDomain = "/" . (($domain['parentdomainid'] == '0') ? $domain['domain'] : $domain['parentdomain']);
}
$statDocroot = FileDir::makeCorrectFile($domain['customerroot'] . '/' . $statTool . $statDomain);