Nginx 返回 110 连接超时
nginx错误日志
2013/08/14 01:06:25 [error] 29031#0: *19429255 connect() failed (110: Connection timed out) while connecting to upstream, client: ***.***.***.***, server: d.localhost.com, request: "GET /dashboard/d HTTP/1.1", upstream: "http://0.0.0.0:9000/dashboard/d", host: "d.localhost.com", referrer: "http://d.localhost.com/"
我使用 nginx 提供资产文件并减少了播放时的负载,但我仍然收到此错误尝试增加 proxy_connect_timeout、send_timeout、proxy_read_timeout 但即使服务器负载较低,错误仍然存在,它会引发这些错误
这经常发生在不同的请求中
我的 nginx 配置是
upstream dWeb {
server 0.0.0.0:9000;
}
server {
listen 80;
client_max_body_size 50M;
server_name d.localhost.com;
root /home/web/d-web;
send_timeout 20;
location /
{
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_max_temp_file_size 0;
proxy_connect_timeout 10000;
send_timeout 10000;
proxy_read_timeout 10000;
keepalive_timeout 10000;
root /home/web/dsp-web/d-web-0.1.0;
autoindex on;
proxy_pass http://dWeb;
error_log /data/nginxlog/d.rd/error.log;
}
}