AWStats analyzes the nginx log file, saves the generated results (as a TXT file) in the/var/www/AWStats directory, and uses Apche
Displays the generated results.
The nginx domain name is www.a.com: 80.
Logfile = "/usr/local/mybin/nginx/logs/access. log" # nginx Log File Path
Dirdata = "/var/www/AWStats/" # Save path of awstats generation result
Sitedomain = "www.a.com" # nginx Domain Name
Yum install-y mod_perl enables Apache to support Perl
VI/etc/httpd/CONF. d/AWStats. conf
Added:
<Directory "/usr/share/AWStats/wwwroot/cgi-bin">
Directoryindex AWStats. pl
Option excecgi
AllowOverride none
Order allow, deny
Allow from all
</Directory>
Perl/usr/share/AWStats/wwwroot/cgi-bin/AWStats. pl-Update-Config = www.a.com
At this time, AWStats. pl will read the awstats.www.a.com. conf configuration file to update the database and ..txt
Http://www.a.com: 8080/AWStats. pl? Config = www.a.com
This article is from the "12208412" blog, please be sure to keep this source http://12218412.blog.51cto.com/12208412/1874943
AWStats analyzes nginx log files