我知道这个问题很愚蠢并经常回答,但现在还没有解决方案对我有用。我正在使用OpenSuse和Apache2并添加了
SetEnvIf Remote_Addr "127\.0\.0\.1" loopback
SetEnvIf Remote_Addr "::1" loopback
CustomLog /var/log/apache2/access_log combined env=!loopback
但如果我重新启动apache,访问日志会显示
::1 - - [01/Nov/2012:23:18:06 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:16 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:22 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:34 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:35 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:36 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:18:37 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:19:34 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
::1 - - [01/Nov/2012:23:19:52 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)"
有人可以帮助我,因为我的服务器有很多流量,在这种情况下,虚拟连接对服务器的性能非常不利。问我关于服务器配置的任何你想知道的事情。
非常感谢。
答案 0 :(得分:1)
在第三个
中添加此行SetEnvIf User-Agent ".*internal dummy connection.*" loopback