Rumah > pembangunan bahagian belakang > tutorial php > internal dummy connection

internal dummy connection

WBOY
Lepaskan: 2016-06-20 12:27:56
asal
1743 orang telah melayarinya

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

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

Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan