我正在尝试简化客户端的服务器。下载access_log文件后,我注意到有很多条目看起来像:
::1 - - [11/May/2009:23:21:16 +0100] "GET / HTTP/1.0" 403 5043 "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
我还检查了httpd.conf文件,我看到了以下设置:
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 8
MinSpareServers 8
MaxSpareServers 13
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 50
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
我一直在读,我需要将MaxSpareServes设置为大于MinSpareServers的值。非常感谢意见。
最基本的问候。 汤姆
答案 0 :(得分:3)
据我所知,没有什么可担心的,你可以通过使用Andri已经给出的链接中的信息来阻止他们进入日志......
如果您希望将它们排除在您的身上 日志,你可以正常使用 条件记录技术。对于 例如,省略来自的所有请求 你的日志中的loopback接口 可以使用
SetEnvIf Remote_Addr "127\.0\.0\.1" loopback
然后添加env =!loopback CustomLog指令的结束。