diff --git a/lib/Froxlor/Cron/Http/Apache.php b/lib/Froxlor/Cron/Http/Apache.php index 5f3db58c..52e2f3a1 100644 --- a/lib/Froxlor/Cron/Http/Apache.php +++ b/lib/Froxlor/Cron/Http/Apache.php @@ -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 diff --git a/lib/Froxlor/Cron/Http/Lighttpd.php b/lib/Froxlor/Cron/Http/Lighttpd.php index 0b480ddc..8747d883 100644 --- a/lib/Froxlor/Cron/Http/Lighttpd.php +++ b/lib/Froxlor/Cron/Http/Lighttpd.php @@ -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"; diff --git a/lib/Froxlor/Cron/Http/Nginx.php b/lib/Froxlor/Cron/Http/Nginx.php index 177ba636..09ee17ba 100644 --- a/lib/Froxlor/Cron/Http/Nginx.php +++ b/lib/Froxlor/Cron/Http/Nginx.php @@ -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";