apache| Server | Application Example Apache Server log Analysis application example
Rhinux published in: 2004-11-28 22:11
The rapid development of the Internet, whether it is a traditional enterprise website, or Internet enterprises, in order to understand their own customer source, click rate and other information, the site log analysis is particularly important, the following I do the log analysis system to share with you, hope to be helpful to everyone.
Welcome everyone to copy, but please keep the integrity of this article, thank you!!
First, the software and tools used
1,apache Server Official website: http://www.apache.org
2,awstats Log Analysis Software official website: http://awstats.sourceforge.net/
3,cronolog log Interception Software official website: http://www.cronolog.org
1, the above settings due to CGI support, but also increased security vulnerabilities can be awstats with the awstats_buildstaticpages.pl to generate static pages can be added to the crontab
That's not 15 minutes to generate a variety of static pages under/db/htdocs/www/awstat/.
2, protect/db/htdocs/www/awstat/prohibit unauthorized user access
Add in httpd.conf
Code:
<directory "/db/htdocs/www/awstat/" >
AuthType Basic
AuthName "Restricted Files"
Authuserfile/usr/local/apache2/passwd/passwords
Require User LogUser
</Directory>
If the Www.abc.net virtual host directory is/db/htdocs/www/, enter http://www.abc.net/awstat/awstats.www.abc.net.html in the browser to access the static page carefully
3, if you use a static page, don't forget to comment out
LoadModule Cgi_module modules/mod_cgi.so
Five, to my favorite flying fly.
Six, because I am a beginner, this article slightly rough, if there is any guidance and questions welcome and I contact, we exchange each other to improve: hoash2003@hotmail.com
Welcome everyone to copy, but please keep the integrity of this article, thank you!!
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.