NGINX and AWStats

3 posts / 0 new
Last post
#1 Sat, 04/07/2012 - 15:33
pcfreak30

NGINX and AWStats

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.

Fri, 04/13/2012 - 22:08
andreychek

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...

Sat, 04/14/2012 - 02:35
pcfreak30

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

Topic locked