APACHE、PHP服务器随机返回空响应
我有9台ubuntu服务器(EC2)在ELB后面工作, 服务器似乎随机响应空响应,即使请求不是从ELB发送的 Apache监视器上未捕获任何错误日志, 没有特殊超时,或者访问日志中捕获了408, 都返回状态200 我能看到的带响应的请求和带空响应的请求之间的唯一不同之处是标头,它: 良好响应标题:APACHE、PHP服务器随机返回空响应,php,apache,ubuntu,amazon-ec2,Php,Apache,Ubuntu,Amazon Ec2,我有9台ubuntu服务器(EC2)在ELB后面工作, 服务器似乎随机响应空响应,即使请求不是从ELB发送的 Apache监视器上未捕获任何错误日志, 没有特殊超时,或者访问日志中捕获了408, 都返回状态200 我能看到的带响应的请求和带空响应的请求之间的唯一不同之处是标头,它: 良好响应标题: Cache-Control: no-cache, must-revalidate Connection: close Content-Length: 3 KBytes Co
Cache-Control:
no-cache, must-revalidate
Connection: close
Content-Length: 3 KBytes
Content-Type: application/json
Date:
2014 Oct 10 17:41:39-15s
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Server: Apache/2.2.22 (Ubuntu)
X-Powered-By: PHP/5.3.10-1ubuntu3.13
Connection: close
Content-Encoding: gzip
Content-Length: 20 Bytes
Content-Type: application/json
Date:
2014 Oct 10 17:41:26-13s
Server: Apache/2.2.22 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.10-1ubuntu3.13
错误响应标题:
Cache-Control:
no-cache, must-revalidate
Connection: close
Content-Length: 3 KBytes
Content-Type: application/json
Date:
2014 Oct 10 17:41:39-15s
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Server: Apache/2.2.22 (Ubuntu)
X-Powered-By: PHP/5.3.10-1ubuntu3.13
Connection: close
Content-Encoding: gzip
Content-Length: 20 Bytes
Content-Type: application/json
Date:
2014 Oct 10 17:41:26-13s
Server: Apache/2.2.22 (Ubuntu)
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.10-1ubuntu3.13
有什么想法吗?@PaulCrovella联系AWS支持部门没有意义。这个应用程序在EC2中运行的事实是不相关的,因为OP说即使ELB不在循环中,它也会发生。OP在应用程序的代码或正在使用的库中有一个bug。经过深入调试后,我发现我使用的一个SDK中有一些die()。。导致应用程序在使用此SDK时在加载时死亡。。