If there anyway to get nginx and awstats to work together?
Does virtualmin use awstats to monitor account's bandwidth?
I know you can change NGINX's log format so I would think they could be some automated way to do it?
Well, the problem there is that Virtualmin relies on the ability to run awstats.pl for viewing stats -- and Nginx can't run CGI scripts.
There is a workaround that you could setup manually -- there's a way to have Awstats build static pages, rather than dynamically displaying the stats.
There's some details on doing that here:
I looked on nginx wiki and you could take the script here and use it as a fastcgi-type server for perl scripts. I ALSO know that you can use the perl module in nginx to run perl directly thus probably taking advantage of awstats.
CGO Link: http://wiki.nginx.org/SimpleCGI
PERL Module: http://wiki.nginx.org/EmbeddedPerlModule