2019-10-15 17:42:04 +00:00
|
|
|
location ~ ^/awstats {
|
2020-02-02 12:55:43 +00:00
|
|
|
rewrite ^ /cgi-bin/awstats.pl;
|
2019-10-15 17:42:04 +00:00
|
|
|
}
|
|
|
|
location ^~ /awstatsicons {
|
2020-02-02 12:55:43 +00:00
|
|
|
alias /usr/share/awstats/icon/;
|
|
|
|
access_log off;
|
2019-10-15 17:42:04 +00:00
|
|
|
}
|
|
|
|
location ^~ /awstatsclasses {
|
2020-02-02 12:55:43 +00:00
|
|
|
alias /usr/share/java/awstats/;
|
|
|
|
access_log off;
|
2019-10-15 17:42:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location ~ ^/cgi-bin/.*\.(cgi|pl|py|rb) {
|
|
|
|
gzip off;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_pass php;
|
|
|
|
fastcgi_index cgi-bin.php;
|
|
|
|
fastcgi_param SCRIPT_FILENAME /etc/nginx/cgi-bin.php;
|
|
|
|
fastcgi_param SCRIPT_NAME cgi-bin.php;
|
|
|
|
fastcgi_param X_SCRIPT_FILENAME /usr/lib$fastcgi_script_name;
|
|
|
|
fastcgi_param X_SCRIPT_NAME $fastcgi_script_name;
|
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
|
|
|
}
|