vi /etc/awstats/awstats.ftp.conf
------------------------------------------
LogFile="/var/log/xferlog"
LogType=F
LogFormat="%time3 %other %host %bytesd %url %other %other %method %other %logname %other %code %other %other"
LogSeparator="\s"
SiteDomain="Domain.com"
HostAliases="192.168.0.3 localhost 127.0.0.1"
DNSLookup=1
DirData="/var/lib/awstats"
DirIcons="/awstatsicons"
AllowToUpdateStatsFromBrowser=0
NotPageList=""
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
ShowLinksOnUrl=0
ShowMenu=1
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
------------------------------------------
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=ftp -update
測試:http://IP/awstats/awstats.pl?config=ftp
------------------------------------------
#定時更新
vi /etc/crontab
50 4 * * * root /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=ftp -update >/dev/null 2>&1
2.若有多個設定檔要執行的話可以執行
/usr/local/awstats/tools/awstats_updateall.pl now
vi /etc/crontab
0 23 * * * /usr/local/awstats/tools/awstats_updateall.pl now >/dev/null 2>&1
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言