我有一个很奇怪的问题。我必须修复wordpress安装中与服务器负载相关的奇怪错误。
当站点收到5个以上的并行请求时,一些页面开始抛出404个错误。抛出错误的页面从不相同,似乎完全是随机的。
我可以使用终端中的curl在本地计算机上重新创建问题:
$ curl -I http://site.local.com/path/to/page & curl -I http://site.local.com/path/to/page/ & curl -I http://site.local.com/path/to/page/ & curl -I http://site.local.com/path/to/page/ & curl -I
HTTP/1.1 200 OK
Date: Fri, 13 Jun 2014 14:31:09 GMT
Server: Apache/2.2.26 (Unix) DAV/2 PHP/5.5.11 mod_ssl/2.2.26 OpenSSL/0.9.8y
X-Powered-By: PHP/5.5.11
X-Pingback: http://site.local.com/xmlrpc.php
Content-Type: text/html; charset=UTF-8
HTTP/1.1 404 Not Found
Date: Fri, 13 Jun 2014 14:31:09 GMT
Server: Apache/2.2.26 (Unix) DAV/2 PHP/5.5.11 mod_ssl/2.2.26 OpenSSL/0.9.8y
X-Powered-By: PHP/5.5.11
X-Pingback: http://site.local.com/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
HTTP/1.1 200 OK
Date: Fri, 13 Jun 2014 14:31:09 GMT
Server: Apache/2.2.26 (Unix) DAV/2 PHP/5.5.11 mod_ssl/2.2.26 OpenSSL/0.9.8y
X-Powered-By: PHP/5.5.11
X-Pingback: http://site.local.com/xmlrpc.php
Content-Type: text/html; charset=UTF-8
HTTP/1.1 200 OK
Date: Fri, 13 Jun 2014 14:31:09 GMT
Server: Apache/2.2.26 (Unix) DAV/2 PHP/5.5.11 mod_ssl/2.2.26 OpenSSL/0.9.8y
X-Powered-By: PHP/5.5.11
X-Pingback: http://site.local.com/xmlrpc.php
Content-Type: text/html; charset=UTF-8
第二个curl调用返回404错误。
我已经禁用了所有插件,这种行为仍在发生。
有人有什么想法吗?