AWStats analyzes nginx log files

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.