nginx nodejs 502 upstream prematurely closed connection while reading response header from upstream
问题描述:
在nginx + nodejs的应用场景中,请求URL中如果含有不能进行编码的非法字符则nodejs http server会直接socket hang up断开连接,导致nginx报错"upstream prematurely closed connection while reading response header from upstream", nginx对客户端返回502...
原创
2018-09-14 11:12:28 ·
4938 阅读 ·
0 评论