fix stats-url generation in vhosts
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user