>백엔드 개발 >PHP 튜토리얼 >internal dummy connection

internal dummy connection

WBOY
WBOY원래의
2016-06-20 12:27:561743검색

internal dummy connection

Apache2.2之后,在Apache的日志中经常看到大量的internal dummy connection日志:

[ [email protected]

logs]# tail -f access_log.20060409 |grep “internal dummy connection”

::1 – – “GET / HTTP/1.0” 200 68091 “-” “Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)”

::1 – – “GET / HTTP/1.0” 200 68091 “-” “Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)”

::1 – – “GET / HTTP/1.0” 200 68091 “-” “Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)”

::1 – – “GET / HTTP/1.0” 200 68091 “-” “Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)”

::1 – – “GET / HTTP/1.0” 200 68091 “-” “Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)”

::1 – – “GET / HTTP/1.0” 200 68091 “-” “Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)”

srequest = apr_pstrcat(p, “GET / HTTP/1.0\r\nUser-Agent: “,

ap_get_server_version(),

” (internal dummy connection)\r\n\r\n”, NULL);

查看apache手册(有条件的记录日志)

通过修改Apache的配置文件可以在日志中屏蔽这些信息:

ErrorLog “/usr/local/apache/logs/error_log”

SetEnvIf Remote_Addr “::1” dontlog

CustomLog “/usr/local/apache/logs/access_log” combined env=!dontlog

这样日志就不记录这些信息了

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.