分类: LINUX
2007-04-19 21:40:28
#LogFile="gzip -d < log.gz |" #LogFile="awstats/tools/logresolvemerge.pl *.log |" LogFile="/var/log/httpd/.%Dw-1.log" LogType=W LogFormat=1 SiteDomain="" HostAliases="webfull.cn 192.168.0.100" DNSLookup=2 DirData="/var/lib/awstats" AllowToUpdateStatsFromBrowser=0 CreateDirDataIfNotExists=0 SaveDatabaseFilesWithPermissionsForEveryone=0 PurgeLogFile=0 ArchiveLogRecords=0 KeepBackupOfHistoricFiles=1 DefaultFile="index.htm index.html index.php" SkipHosts="localhost REGEX[^192\.168\.]" SkipFiles="REGEX[^\/images] REGEX[^\/css] REGEX[^\/scripts] REGEX[^\/awstats] REGEX[^*\.gif]" Lang="auto" #LoadPlugin="decodeutfkeys" #LoadPlugin="hashfiles" #LoadPlugin="geoip GEOIP_STANDARD" #LoadPlugin="userinfo" #LoadPlugin="hostinfo" #Include "" |
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/" Alias /awstatscss "/usr/local/awstats/wwwroot/css/" Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/" ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/" Options None AllowOverride None Order allow,deny Allow from all |
/usr/local/apache/bin/apachetl restart |
cd /usr/local/awstats/wwwroot/cgi-bin/lib wget |
mkdir -p /var/lib/awstats /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config= \ -update -Logfile=/var/log/httpd/.log |
0 * * * * /usr/local/awstats/tools/awstats_updateall.pl now -configdir=/usr/local/etc/awstats |
cd /home/pkg/source
wget cd .. tar zxvf ./source/GeoIP-1.3.8.tar.gz
cd GeoIP-1.3.8; ./configure; make; make install cd /home/pkg/source
wget cd .. tar zxvf ./source/Geo-IP-1.25.tar.gz cd Geo-IP-1.25; perl Makefile.PL; make; make install |
cd /usr/local/share/GeoIP/ wget gunzip GeoIP.dat.gz |
MAILTO=postmaster@funbsd.net 0 0 * * * /usr/local/bin/geoipupdate -v |
pkg_add -r p5-URI.tbz pkg_add -r p5-Encode-HanConvert.tbz pkg_add -r p5-Storable.tbz pkg_add -r GeoIP.tbz pkg_add -r p5-Geo-IP.tbz pkg_add -r p5-Net-XWhois.tbz |
LoadPlugin="decodeutfkeys" LoadPlugin="hashfiles" LoadPlugin="geoip GEOIP_STANDARD" LoadPlugin="hostinfo" |