apache log처리에 대해
허접하지만, 저는 아래와 같이 처리합니다.
ServerName test.org
ServerAlias test.org
ServerAlias test.org
php_admin_flag allow_url_fopen On
CustomLog "|/opt/lampp/bin/rotatelogs /opt/lampp/logs/test.org_access_log.%Y-%m-%d 86400 +540" common
ErrorLog "|/opt/lampp/bin/rotatelogs /opt/lampp/logs/test.org_error_log.%Y-%m-%d 86400 +540"
</VirtualHost>
CustomLog "|/opt/lampp/bin/rotatelogs /opt/lampp/logs/test.org_access_log.%Y-%m-%d 86400 +540" common
ErrorLog "|/opt/lampp/bin/rotatelogs /opt/lampp/logs/test.org_error_log.%Y-%m-%d 86400 +540"
</VirtualHost>
[이 게시물은 관리자님에 의해 2011-10-31 17:30:25 Apache에서 이동 됨]
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 4개
ServerAlias www.test.org
물론 logrotate가 돌 때 webalizer 같은 분석 프로그램도 같이 돕니다.
그래서 파일 이름은 1개지만 사이즈는 일정수준을 넣어가지 않습니다.
하루단위로 해보니까... 파일 용량이 너무 커져서 1시간으로 돌리죠.