Changes related to missing awstats icon location block in Nginx vhosts and Awstats configuration on Gentoo
fixes #1228 fixed #1229
This commit is contained in:
@@ -698,6 +698,13 @@ class nginx
|
||||
$stats_text .= "\t\t" . 'auth_basic_user_file ' . makeCorrectFile($single['usrf']) . ';'."\n";
|
||||
$stats_text .= "\t" . '}' . "\n\n";
|
||||
|
||||
// awstats icons
|
||||
if ($this->settings['system']['awstats_enabled'] == '1') {
|
||||
$stats_text .= "\t" . 'location ~ ^/awstats-icon/(.*)$ {' . "\n";
|
||||
$stats_text .= "\t\t" . 'alias ' . makeCorrectDir($this->settings['system']['awstats_icons']) . '$1;' . "\n";
|
||||
$stats_text .= "\t" . '}' . "\n\n";
|
||||
}
|
||||
|
||||
return $stats_text;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user