Getting 502 bad gateway on uploading a file
mike503 at gmail.com
Wed Oct 12 18:10:00 UTC 2011
2011/10/12 Maxim Dounin <mdounin at mdounin.ru>:
>> if you are using php-fpm over fastcgi i would guess its due to fpm's
>> request_terminate_timeout because the upload took too long
> Very unlikely, as everything happens within 1 second.
> 2011/10/11 17:55:34 [debug] 2505#0: *1 http request line: "POST ...
> 2011/10/11 17:55:34 [error] 2505#0: *1 recv() failed (104: Connection reset by peer) ...
Exactly - this happens *immediately* like it doesn't even try...
Alright well if the logs don't give you any clue from the nginx side,
I'll have to try to figure out the PHP side now :)
More information about the nginx