{아파치가 설치된 경로}/httpd.conf 파일에서


log_config_module이 아래처럼 주석이 없는 것을 확인 후 (기본 설정이면 주석이 없다.)

LoadModule log_config_module modules/mod_log_config.so


<IfModule log_config_module> 안에서

<IfModule log_config_module>


이렇게 되어있는 것을

CustomLog "logs/access.log" common


이렇게 바꾼다.

CustomLog "|bin/rotatelogs.exe logs/%Y%m%d_access.log 86400" combined


Windows 운영체제에선 반드시 rotatelogs 다음에 .exe 를 붙여주어야 한다. 참고

다른 것은 달라질 것이 없으니 Apache2.4 문서를 참고하면 된다.





+ Recent posts