2006/08/15

Awstats

  • rpmでインストール
  • apacheでアクセス制限
  • <LocationMatch "^/awstats">
    Order deny,allow
    Deny from all
    #Allow from all
    Allow from localhost
    Allow from 10.
    Allow from housekeeper.atl-systems.co.jp
    </LocationMatch>
    
  • logrotate設定
  • /var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    prerotate
    /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=CONFIG_DOMAIN_NAME
    endscript
    postrotate
    /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
    }
    
  • 文字化け対策
  • コチラからパッチをダウンロードしてあてます

0 件のコメント: