我在AWS&运行时运行这个nginx服务器直到最近几个用户开始抱怨网站没有打开,直到他们进行了大约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
注意 – 为客户IP放置了xx.xxx.xxx.xx
这是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 ...
}
我真的很感激任何帮助.
谢谢