2012-09-24 43 views
0

我nginx的設置是這樣的:Nginx的網關超時後1分鐘20秒

server { 
    listen 80; 
    server_name websitenamne.in www.websitename.in; 

    root /root/path; 

    location /static { 
    } 

location/{ 
    proxy_pass http://localhost:8003/; 
    proxy_connect_timeout 3600; 
    send_timeout 3600; 
    proxy_read_timeout 3600; 
    include /etc/nginx/proxy_params; 
} 

# what to serve if upstream is not available or crashes 
error_page 500 502 503 504 /static/50x.html; 
} 

在上面,在位置/,我添加了這些東西:

proxy_connect_timeout 3600; 
    send_timeout 3600; 
    proxy_read_timeout 3600; 

但還是nginx的發送網關超時錯誤。我該如何解決這個問題?

回答

0

通常不可能將連接超時設置的時間超過您的操作系統重新嘗試SYN數據包傳輸的時間(通常爲75秒,如nginx docs中所示)。