I see awstats not work on nginxproxy eg when you try to see stats browser only prompt to download the .pl file
Fix: in /home/nginx/conf/globals/awstats.conf comment all lines
# rewrite ^/stats http://$domain/awstats/awstats.pl?config=$domain permanent;
#
# location /awstatsclasses/ {
# alias /home/kloxo/httpd/awstats/wwwroot/classes/$1;
# }
#
# location ~ ^/awstatsicons/(.*)$ {
# alias /home/kloxo/httpd/awstats/wwwroot/icon/$1;
# }
#
# location ~ ^/awstatscss/(.*)$ {
# alias /home/kloxo/httpd/awstats/wwwroot/css/$1;
# }
#
# location ~ ^/awstats/(.*)$ {
# alias /home/kloxo/httpd/awstats/wwwroot/cgi-bin/$1;
# if (-e $request_filename) {
# rewrite ^/awstats/(.*)$ /home/kloxo/httpd/awstats/wwwroot/cgi-bin/$1 last;
# }
# }
service nginx restart
and awstats will work normal