欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

internal dummy connection

程序员文章站 2022-03-24 19:52:03
...
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

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