Nginx proxy_pass file upload 500 "Internal Server Error"

Valentin V. Bartenev ne at vbart.ru
Thu Sep 13 14:04:58 UTC 2012


On Thursday 13 September 2012 17:09:24 a.mion at megasp.it wrote:
> I've a problem using nginx as reverse proxy.
> I sent a POST request to nginx for file upload.
> My backend is an apache2 web server.
> My backend receive correctly request and save correctly uploaded file.

And then it returns a 500 error. You can see this yourself in the debug log
that you have posted here:

> 2012/09/13 14:46:53 [debug] 9004#0: *7 http proxy status 500 "500 Internal
> Server Error"
> 2012/09/13 14:46:53 [debug] 9004#0: *7 http proxy header: "Date: Thu, 13
> Sep 2012 12:49:09 GMT"
> 2012/09/13 14:46:53 [debug] 9004#0: *7 http proxy header: "Server:
> Apache/2.2.16 (Debian)"

> My frontend, nginx, give back a 500, Internal server error response.
[...]

Nginx just gives back exactly what your backend returns. Did you look at
apache logs?

 wbr, Valentin V. Bartenev



More information about the nginx mailing list