我有一个奇怪的情况与Apache2。 毫无意义,随机的403错误。 任何页面(HTML,PHP等)正常工作。 但是如果我按浏览器的刷新button重复请求。 它随机中断并发送一个403。 几秒钟后它再次工作。 在错误日志中,我看到client denied by server configuration 。
Apache的主要错误日志说
[info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 99 idle, and 137 total children
我现在的价值
IfModule mpm_prefork_module StartServers 120 MinSpareServers 100 MaxSpareServers 200 MaxClients 256 MaxRequestsPerChild 500 /IfModule
我从20点增加了10点,但没有解决。 我禁用了KeepAlive。
什么可能会导致这个问题?
先谢谢你。
全新安装Ubuntu服务器x86 8.04.4
Virtualmin从它的网站(而不是从debian仓库)。
Linux 2.6.24-27-server#1 SMP i686 – Apache 2.2.8 Mpm prefork
Virtualmin版本3.78.gpl GPL
PHP版本5.2.4-2ubuntu5.10
加载模块:
core_module(静态)log_config_module(静态)logio_module静态mpm_prefork_module静态http_module静态so_module静态actions_module共享alias_module共享auth_basic_module共享auth_digest_module共享uthn_file_module共享authz_default_module authz_groupfile_module共享)共享udi_module共享authz_user_module共享autoindex_module共享ache_module共享cgi_module共享deflate_module共享dir_module共享env_module共享expires_module共享fcgid_module共享file_cache_module共享eaders_module mime_module(共享)共享)mime_magic_module(共享)evasive20_module共享)negotiation_module(共享)php5_module(共享)rewrite_module(共享)etenvif_module(共享)ssl_module(共享)status_module(共享)语法OK
这是mod_evasive。
http dos和ddos保护模块。
我不认为它可能会logging为“服务器繁忙”。 也mod_evasive本身不会丢弃任何日志。
像我这样的快速寻求解决scheme可能会误解这种情况。
再次感谢你。
服务器负载很重吗? 也许尝试启用mod_status,看看当你得到403时会发生什么。