Webalizer
One minute to read
9 2013 17241 8375 2527 112295 9 30 4797 2927 8 2013 0 0 0 0 0 0 0 0 7 2013 0 0 0 0 0 0 0 0 ↓ 9の削除(9月分) 8 2013 0 0 0 0 0 0 0 0 7 2013 0 0 0 0 0 0 0 0 # cd /var/log/httpd
access_log access_log.1 access_log.2 access_log.3 access_log.4 access_log.5
以上で過去ログの集計も可能です。
28 #LogFile /var/log/httpd/access_log
29 LogFile /var/log/httpd/inamuu.com-access.log <---追記
43 OutputDir /var/www/usage <---必要に応じて変更
# vi /etc/httpd.conf <Directory "/var/www/usage/"> AllowOverride All
Order deny,allow
deny from all
allow from IPアドレス
</Directory>
AuthUserFile /var/www/pw/.htpasswd AuthGroupFile /dev/null AuthName "Secret Area" AuthType Basic require valid-user
<Files
"^.(htpasswd|htaccess)$">
deny from all
</Files>
# htpasswd -c /var/www/pw/.htpasswd ユーザー名
パスワード入力
# crontab -e
*/3 * * * * /usr/bin/webalizer