使用formidable 上传文件遇到502 gateway
这个是nginx的log,我之前好好的,现在我升级express到4以后,用的formidable处理上传,不用反响代理没有问题,但是用上nginx就出错。 502 Bad Gateway
2014/08/07 01:45:45 [error] 16442#0: *3 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 118.119.166.195, server: localhost, request: "POST /postimg HTTP/1.1", upstream: "http://127.0.0.1:3001/postimg", host: "www.lingyong.me", referrer: "http://www.lingyong.me/post"