当前位置:Gxlcms > PHP教程 > internaldummyconnection

internaldummyconnection

时间:2021-07-01 10:21:17 帮助过:8人阅读

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

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

人气教程排行