给vsftpd配置AWSTATS流量统计

时间:2007-01-03 21:36:32   来源:  作者:whsong  点击:次  出处:技术无忧
关键字:给vs

如果你先前配置好的apache的配置文件为:awstats.www.conf

检查你的vsftpd.conf文件看看其中的关于日志文件的设置
一定要有下面三行:

xferlog_enable=YES
xferlog_std_format=YES
xferlog_file=/var/log/vsftpd.log # 这个可以自行设置

再看看你的vsftpd.log是不是以下列形式显示的:

Wed Jan 01 19:29:35 2001 1 192.168.1.1 102 /home/file1.txt b _ o r username ftp 0 * c

[root@www awstats]# cp awstats.www.conf awstats.ftp.conf (为vsftpd设置新的配置文件为awstats.ftp.conf)
[root@www awstats]# vi awstats.ftp.conf

LogFile="/var/log/vsftpd.log" # 你的vsftpd的日志文件
LogType=F
SiteDomain="sx1.bruce.com.cn"
HostAliases="sx1.bruce.com.cn sx1 127.0.0.1 localhost"
DNSLookup=0
DirData="/usr/local/awstats" #数据存放目录,根据自已的情况设定
DirCgi="/awstats"
DirIcons="/awstatsicons"
AllowToUpdateStatsFromBrowser=0 # 如为1则可以在线更新统计
LogFormat="%time3 %other %host %bytesd %url %other %other %method %other %logname %other %code %other %other"
LogSeparator="/s"
NotPageList=""
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
ShowLinksOnUrl=0
ShowMenu=1
ShowSummary=UVHB
ShowMonthStats=UVHB
ShowDaysOfMonthStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=HB
ShowHostsStats=HBL
ShowAuthenticatedUsers=HBL
ShowRobotsStats=0
ShowEMailSenders=0
ShowEMailReceivers=0
ShowSessionsStats=1
ShowPagesStats=PBEX
ShowFileTypesStats=HB
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0
ShowSMTPErrorsStats=0
LoadPlugin="decodeutfkeys"
LoadPlugin="geoipfree"

运行下列命令进行统计更新

[root@www awstats]# /yoursite/cgi-bin/awstats.pl -update -config=ftp

在浏览器中输入http://yousite/cgi-bin/awstats.pl?config=ftp就可以访问了。

你为建站烦吗?为服务器设置而愁吗?来技术无忧服务器专版一切问题将不在存在。


相关文章

    无相关信息

文章评论

共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面

特别推荐