Home > Backend Development > PHP Tutorial > internal dummy connection

internal dummy connection

WBOY
Release: 2016-06-20 12:27:56
Original
1743 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template