프록시를 이용할때 아파치 로그 실 IP 로그 해결방법 / 로그포맷형식 추가
==> 아래와 같이 httpd.conf 파일을 수정한다...
LogFormat "%v %{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" X-Forwarded-For
CustomLog /var/log/apache/www.example.com-xforwarded.log X-Forwarded-For
EX)
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
LogFormat "%v %{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" X-Forwarded-For
********************
********************
********************
ServerAdmin mojily@mojily.com
DocumentRoot /home/board/test
ServerName test.mojily.pe.kr
ErrorLog logs/board.mojily.com-error_log
CustomLog logs/board.mojily.com-access_log X-Forwarded-For
[이 게시물은 최고관리자님에 의해 2009-12-14 20:59:39 리눅스에서 이동 됨]