리눅스 분류
아파치 Error_Log 문의 드립니다.
작성자 정보
- 임민웅 작성
- 작성일
컨텐츠 정보
- 1,952 조회
- 0 추천
- 목록
본문
먼저 httpd.conf 파일 내용입니다. ------------------------------------------------------------------- ErrorLog /usr/local/apache/logs/error_log LogLevel alert LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined LogFormat "%h %l %u %t "%r" %>s %b" .common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog /usr/local/apache/logs/access_log common www.domain1.co.kr> ServerAdmin admin@domain1.co.kr DocumentRoot /usr/local/apache/htdocs ServerName www.domain1.co.kr ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common www.domain2.co.kr> ServerAdmin admin@domain2.co.kr DocumentRoot /usr/local/apache/htdocs/home ServerName www.domain2.co.kr ServerAlias domain2.co.kr ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common www.domain2.com> ServerAdmin admin@domain2.com DocumentRoot /usr/local/apache/htdocs/home ServerName www.domain2.com ServerAlias domain2.com ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common ------------------------------------------------------------------- 이거는 ls -al /usr/local/apache/logs 결과입니다. 0 Oct 11 09:47 access_log 564153613 Oct 11 09:18 access_log_org 33269409 Oct 11 15:24 dummy-host.example.com-access_log 28042808 Oct 1 12:23 dummy-host.example.com-access_log_org 0 Oct 11 09:47 dummy-host.example.com-error_log 2147483647 Oct 1 10:01 dummy-host.example.com-error_log_org 827464 Oct 11 09:47 error_log 질문1. 위와 같이 설정 되었을때 버철 호스트의 ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common 가 우선시 되어서 현재 로그 내용은 log 디렉토리에 버철 호스트에서 설정해놓은 dummy-host.example.com-access_log 와 dummy-host.example.com-error_log 로 저장되는 것으로 알고있습니다. 맞나요? 질문2. 그럼 지금 log디렉토리에 있는 access_log 와 error_log 파일은 지워도 되는건가요? 질문3. 위에질문이 맞다면 dummy-host.example.com-access_log_org dummy-host.example.com-error_log_org 는 백업 파일인가요? 서버 담당자가 제가 아니어서 잘 몰라서 묻습니다. ㅜ.ㅜ 질문4. 에러로그가 2G가 넘게 쌓여서 자꾸 아파치 데몬이 다운이 된다고 하는데.. dummy-host.example.com-error_log -->> dummy-host.example.com-error_log_org 백업하고 로그파일을 다시 0으로 만들어주면 되는건가요? 질문이 좀 많은데..혹시 아시는분은 답변좀 부탁드리겠습니다. 에효! 공부중이긴한데 당장 서버관리가 안된다고 고치라고는 하는데.. 서버관리도 아니고 ㅜ.ㅜ 개념만이라도 살짝 부탁좀 드릴게요! |
관련자료
-
이전
-
다음
댓글 0
등록된 댓글이 없습니다.