At the end of the day the cause was a timeout due to long processing in the background. Thanks for having a look anyways! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240727,240783#msg-240783