静态页面统计访问地址:
http://www.guduo.net/statistics/ (awstats静态统计)
动态页面访问地址:
http://www.guduo.net/awstats/cgi-bin/awstats.pl?config=guduo.net
顺便也修改了DH给的默认的ssh账户中的crontab的编辑器:
$ cat ~/.bash_profile
export EDITOR=vi
之前修改的set -o vi 即 vi 命令行模式:
$ cat ~/.inputrc
set editing-mode vi
htaccess测试:
$ cat .htaccess
AuthName "user/pw:awstats/awstats"
AuthType Basic
AuthUserFile /home/xxx/.htpasswd
Require valid-user
htpasswd -c /home/xxx/.htpasswd awstats
$ cat awstats.guduo.net.conf | grep ^LogFile
LogFile="/home/www/guduo.net/awstats/tools/logresolvemerge.pl
/home/www/logs/guduo.net/http/access.log*|"
$ crontab -l
0 3 * * * /usr/local/bin/perl /home/xxx/awstats/tools/awstats_buildstaticpages.pl -config=guduo.net -update -awstatsprog=/home/xxx/awstats/cgi-bin/awstats.pl -dir=/home/xxx/guduo.net/statistics/ >/dev/null 2>&1
18 * * * * /home/xxx/guduo.net/awstats/cgi-bin/awstats.pl -config=guduo.net -update >/dev/null
--EOF--
Leave a comment