리눅스 분류
아파치 error_log 가 쌓이지 않습니다.
작성자 정보
- 슈퍼유저사랑 작성
- 작성일
컨텐츠 정보
- 1,876 조회
- 0 추천
- 목록
본문
아파치 2.54 버전을 사용하고 있고 레드햇 9 입니다. 이상하게 아파치 로그부분에서 error_log 가 쌓이지 않는데요.. access_log는 쌍이는데 error_log가 쌓이지 않습니다. 왜 그럴까요?
vhosts.conf 파일이 있어 httpd.conf 에서 불러오고 가상호스트를 사용하고 있습니다.httpd.conf 부분 # # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a # container, that host's errors will be logged there and not here. # ErrorLog logs/error_log # # If you prefer a single logfile with access, agent, and referer information # (Combined Logfile Format) you can use the following directive. # SetEnvIfNoCase Request_URI (gif|png|jpg|bmp|jpeg|swf)$ IMAGE=1 CustomLog logs/access_log combined env=!IMAGE /usr/local/apache2/logs 부분 -rw-r--r-- 1 root root 129626685 7월 4 14:51 access_log -rw-r--r-- 1 root root 37281613 7월 1 04:03 access_log.1.gz -rw-r--r-- 1 root root 19120985 6월 1 04:05 access_log.2.gz -rw-r--r-- 1 root root 0 7월 1 04:10 error_log -rw-r--r-- 1 root root 6323238 7월 1 04:09 error_log.1.gz -rw-r--r-- 1 root root 2227538 6월 1 04:05 error_log.2.gz -rw-r--r-- 1 root root 5 7월 1 04:03 httpd.pid
그런데 vhosts.conf 에 있는 모든 사이트에 ErrorLog와 CustomLog 를 지정해준것도
있고 지정안해준 호스트도 있습니다.
그렇다면 ErrorLog 지정안해준 호스트는 httpd.conf 에 설정되어 있는대로
/usr/local/apache2/logs/error_log 에 쌓여야 하지 않나요?
access_log 는 잘 쌓이고 있습니다.
관련자료
-
이전
-
다음
댓글 0
등록된 댓글이 없습니다.