fix awstats path in generated vhost config if speciallogfile=0
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -1034,6 +1034,10 @@ class Apache extends HttpConfigBase
|
||||
|
||||
$statTool = Settings::Get('system.traffictool');
|
||||
$statDomain = "";
|
||||
if ($statTool == 'awstats') {
|
||||
// awstats generates for each domain regardless of speciallogfile
|
||||
$statDomain = "/" . $domain['domain'];
|
||||
}
|
||||
if ($domain['speciallogfile'] == '1') {
|
||||
$statDomain = "/" . (($domain['parentdomainid'] == '0') ? $domain['domain'] : $domain['parentdomain']);
|
||||
}
|
||||
|
||||
@@ -719,6 +719,10 @@ class Lighttpd extends HttpConfigBase
|
||||
|
||||
$statTool = Settings::Get('system.traffictool');
|
||||
$statDomain = "";
|
||||
if ($statTool == 'awstats') {
|
||||
// awstats generates for each domain regardless of speciallogfile
|
||||
$statDomain = "/" . $domain['domain'];
|
||||
}
|
||||
if ($domain['speciallogfile'] == '1') {
|
||||
$statDomain = "/" . (($domain['parentdomainid'] == '0') ? $domain['domain'] : $domain['parentdomain']);
|
||||
}
|
||||
|
||||
@@ -1120,6 +1120,10 @@ class Nginx extends HttpConfigBase
|
||||
|
||||
$statTool = Settings::Get('system.traffictool');
|
||||
$statDomain = "";
|
||||
if ($statTool == 'awstats') {
|
||||
// awstats generates for each domain regardless of speciallogfile
|
||||
$statDomain = "/" . $domain['domain'];
|
||||
}
|
||||
if ($domain['speciallogfile'] == '1') {
|
||||
$statDomain = "/" . (($domain['parentdomainid'] == '0') ? $domain['domain'] : $domain['parentdomain']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user