4,534,603 th visitor since 2017.2.1 ( Today : 13574 )
Computer ???
No. 60
Name. swindler
Subject. [Apache] 특정 IP만 로그 안 남기기
Main Cate. Linux
Sub Cate.
Date. 2005-07-04 19:54
Hit. 4231 (211.109.70.164)
File.
아파치 설정을 다음과 같이 하면 특정 ip 에서의 접근은 로그 파일에 남지 않게
할수 있습니다.

<VirtualHost ip.address.of.host.some_domain.com>
ServerAdmin webmaster@host.some_domain.com
DocumentRoot /www/docs/host.some_domain.com
ServerName host.some_domain.com

LogFormat "%h %l %u %t \"%r\" %>s %b" common
ErrorLog logs/host.some_domain.com-error_log

SetEnvIf Remote_Addr 192.168.100.13$ do_not_log
CustomLog logs/access_log combined env=!do_not_log

</VirtualHost>

아파치 1.3.5 이상과 mod_log_config, mod_setenv 모듈이 로드되어야 합니다.

http://portico.org/ 에서...

[바로가기 링크] : http://coolx.net/cboard/computer/60



Name
Password
Comment
Copyright © 1999-2017, swindler. All rights reserved. 367,611 visitor ( 1999.1.8-2004.5.26 ), 2,405,771 ( -2017.01.31)

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog