On Wed, Oct 12, 2016 at 06:28:47AM -0400, yurai wrote:

Hi there,

> >"The file should be transferred to the nginx server."
> This is the whole point. 
> With current configuration when I type curl --data-binary '@upload.txt'
> http://localhost/upload file is NOT transffered from client to server at all
> - "proxy_pass" is performed and I only get HTTP response 200.

There is the client.

There is the nginx server, that the client talks to.

There is the upstream back-end server, that nginx talks to.

Are you reporting that the content of the client-file upload.txt is not
saved on the nginx server that is localhost, in a numbered file below
your client_body_temp_path?

Or are you reporting that the content of the client-file upload.txt is
not transferred to the upstream back-end server?

There is more than one server involved. Please be very clear which one
you are referring to, when you refer to any.

> When I change my configuration (by removing whole backend configuration (s2
> block) and all proxy_* directives from s1) and type same command I get HTTP
> 405 Not Allowed or HTTP 301 Moved Permanently.
> Let's ignore for the second size of my file in body. Maybe in this moment
> the right question is: what should I do to make my above curl command work?

It works for me.

Perhaps I have a different idea of what "works" mean.

Francis Daly        fran...@daoine.org

nginx mailing list

Reply via email to