This error comes from PHP, not Nginx. Also, it seems that the referred code is communicating with S3 and not with Cloudinary. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251881,251949#msg-251949