0

当我直接访问 Node.js (https://domain.com:81) 时,我得到了整个响应。当我通过 Nginx (https://domain.com/eval/something) 时,如果响应非常大,我不会得到全部响应。

配置文件

location ~ ^/eval/ {
    proxy_buffering    off;
    proxy_pass         https://domain.com:81;
}

编辑:它返回不超过 16kB。整个响应有超过 160kB。

NGINX 调试文件: https ://www.dropbox.com/s/4689ch6lonxsqrn/nginx.log

已解决:问题出在https://domain.com:81. 如果我只设置http://它工作正常。

4

1 回答 1

0

Have you tried with proxy_buffering on? Maybe node is taking to long to answer and nginx stops reading. Try increasing the proxy_read_timeout (default is 60s).

于 2013-06-24T11:20:58.753 回答