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:
Florian Lahr
2013-06-06 14:49:21 +02:00
parent fc4a93ff6e
commit a3ee1430ac
2 changed files with 8 additions and 0 deletions

View File

@@ -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;
}