Webalizer 安装使用指南(3)
二. 配置:
一个普通的配置文件为:
HideReferrer www.freelamp.com
Incremental yes
PageType htm*
PageType cgi
PageType php
PageType pl
IgnoreHist no
CountryGraph yes
IndexAlias index.cgi
IndexAlias index.php
HideReferrer Direct Request
HideURL *.gif
HideURL *.GIF
HideURL *.jpg
HideURL *.JPG
HideURL *.png
HideURL *.PNG
GroupURL /cgi-bin/* CGI Scripts
GroupURL /images/* Images
GroupReferrer yahoo.com/ Yahoo!
GroupReferrer excite.com/ Excite
GroupReferrer infoseek.com/ InfoSeek
GroupReferrer webcrawler.com/ WebCrawler
GroupReferrer google.com/ Google
GroupReferrer lycos.com/ Lycos
GroupReferrer metacrawler.com/ Metacrawler
GroupAgent MSIE Internet Exploder
GroupAgent Mozilla Netscape
GroupShading yes
MangleAgents 3
一个普通的配置文件为:
HideReferrer www.freelamp.com
Incremental yes
PageType htm*
PageType cgi
PageType php
PageType pl
IgnoreHist no
CountryGraph yes
IndexAlias index.cgi
IndexAlias index.php
HideReferrer Direct Request
HideURL *.gif
HideURL *.GIF
HideURL *.jpg
HideURL *.JPG
HideURL *.png
HideURL *.PNG
GroupURL /cgi-bin/* CGI Scripts
GroupURL /images/* Images
GroupReferrer yahoo.com/ Yahoo!
GroupReferrer excite.com/ Excite
GroupReferrer infoseek.com/ InfoSeek
GroupReferrer webcrawler.com/ WebCrawler
GroupReferrer google.com/ Google
GroupReferrer lycos.com/ Lycos
GroupReferrer metacrawler.com/ Metacrawler
GroupAgent MSIE Internet Exploder
GroupAgent Mozilla Netscape
GroupShading yes
MangleAgents 3
然后我们运行/usr/local/bin/webalizer -Q -c /root/webalizer.conf -n www.freelamp.com -o /home/freelamp/public_html/log/ /home/freelamp/logs/freelamp.log 把这句话写入 crontab ,我们就能从http://www.freelamp.com/log/ 看到日志统计结果了。
顶(0)
踩(0)
- 最新评论