我的nginx服务器在AWS上运行,并且一直运行良好,直到最近,几个用户开始抱怨该网站直到他们进行了10次访问尝试才无法打开。
我从来没有能够从我这一方面来解决这个问题。我正在使用Google的dns,即8.8.8.8,当我为其中一位用户更改相同名称时,该网站运行正常。现在,这可能是原因,也可能仅仅是巧合。
我在错误日志中找到了这个-
2014/05/29 13:46:15 [info] 6940#0: *150649 client timed out (110: Connection timed out) while waiting for request, client: xx.xxx.xxx.xx, server: 0.0.0.0:80
2014/05/29 13:46:20 [info] 6940#0: *150670 client closed connection while waiting for request, client: xx.xxx.xxx.xx, server: 0.0.0.0:80
2014/05/29 13:46:20 [info] 6940#0: *150653 client closed connection while waiting for request, client: xx.xxx.xxx.xx, server: 0.0.0.0:80
2014/05/29 13:46:20 [info] 6940#0: *150652 client closed connection while waiting for request, client: xx.xxx.xxx.xx, server: 0.0.0.0:80
甚至在某些地方-
2014/05/29 13:46:53 [info] 6940#0: *150665 client closed connection while waiting for request, client: xx.xxx.xxx.xx, server: 0.0.0.0:80
2014/05/29 13:46:53 [info] 6940#0: *150660 client xx.xxx.xxx.xx closed keepalive connection
注意-将xx.xxx.xxx.xx放置为客户IP
这是Nginx配置-
server {
listen 80;
server_name somedomain.com www.somedomain.com;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
root /var/www/somedomain/current/app/webroot;
index index.php index.html index.htm;
... couple of location rules ...
}
我真的很感谢您的帮助。
谢谢