NGINX and AWStats

  • pcfreak30
  • 02/10/12
  • Offline
Posted: Sat, 2012-04-07 15:33

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?

Thanks.


Howdy, Well, the problem

  • andreychek
  • 01/05/09
  • Offline
  • Fri, 2012-04-13 22:08

Howdy,

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:

http://www.bytetouch.com/blog/system-administration/how-to-awstats-insta...


I looked on nginx wiki and

  • pcfreak30
  • 02/10/12
  • Offline
  • Sat, 2012-04-14 02:35

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