fix stats-url generation in vhosts

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-11-03 11:38:21 +01:00
parent 1bf9b38cfb
commit 91c8fed5f4
3 changed files with 9 additions and 9 deletions

View File

@@ -1033,11 +1033,11 @@ class Apache extends HttpConfigBase
$stats_text = '';
$statTool = Settings::Get('system.traffictool');
$statDomain = ($domain['parentdomainid'] == '0') ? $domain['domain'] : $domain['parentdomain'];
$statDomain = "";
if ($domain['speciallogfile'] == '1') {
$statDomain = $domain['domain'];
$statDomain = "/" . $domain['domain'];
}
$statDocroot = FileDir::makeCorrectFile($domain['customerroot'] . '/'.$statTool.'/' . $statDomain);
$statDocroot = FileDir::makeCorrectFile($domain['customerroot'] . '/' . $statTool . $statDomain);
$stats_text .= ' Alias /'.$statTool.' "' . $statDocroot . '"' . "\n";
// awstats special requirement for icons

View File

@@ -718,11 +718,11 @@ class Lighttpd extends HttpConfigBase
$stats_text = '';
$statTool = Settings::Get('system.traffictool');
$statDomain = ($domain['parentdomainid'] == '0') ? $domain['domain'] : $domain['parentdomain'];
$statDomain = "";
if ($domain['speciallogfile'] == '1') {
$statDomain = $domain['domain'];
$statDomain = "/" . $domain['domain'];
}
$statDocroot = FileDir::makeCorrectFile($domain['customerroot'] . '/'.$statTool.'/' . $statDomain);
$statDocroot = FileDir::makeCorrectFile($domain['customerroot'] . '/' . $statTool . $statDomain);
$stats_text .= ' alias.url = ( "/'.$statTool.'/" => "' . $statDocroot . '" )' . "\n";

View File

@@ -1118,11 +1118,11 @@ class Nginx extends HttpConfigBase
$stats_text = '';
$statTool = Settings::Get('system.traffictool');
$statDomain = ($domain['parentdomainid'] == '0') ? $domain['domain'] : $domain['parentdomain'];
$statDomain = "";
if ($domain['speciallogfile'] == '1') {
$statDomain = $domain['domain'];
$statDomain = "/" . $domain['domain'];
}
$statDocroot = FileDir::makeCorrectFile($domain['customerroot'] . '/'.$statTool.'/' . $statDomain);
$statDocroot = FileDir::makeCorrectFile($domain['customerroot'] . '/' . $statTool . $statDomain);
$stats_text .= "\t" . 'location ^~ /'.$statTool.' {' . "\n";
$stats_text .= "\t\t" . 'alias ' . $statDocroot . '/;' . "\n";