我的 nginx 设置是这样的:
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 发送网关超时错误。我该如何解决这个问题?