아파치 서버 (centos)에서...error log 위치를 변경하려는데~~
본문
#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log
답변 3
/etc/httpd/ 에 들어가 보시면, logs 라는 심볼릭링크가 있을 것입니다.
이 링크를 원하는 곳으로 변경해 보세요.
#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log
http://static.se2.naver.com/static/img/bg_quote2.gif) 0 3px no-repeat;color:#888888;">VirtualHost 안에 ErrorLog 지시자를 지정하지 않을 경우
컨테이너는 이곳 (ErrorLog logs/error_log) 에 로깅함
이라고 설명하고 있습니다.
우선 주석 내용처럼 VirtualHost 에 따로 지정을 해서 그런것은 아닌지 확인해 보세요.
ErrorLog logs/error_log
=> 생성되야 하는경로를 모두 지정하시면 될거 같습니다.
예) /data/logs/error_log
ErrorLog /data/logs/error_log