Welcome! Log In Create A New Profile

Advanced

Re: Clientbodyinfileonly - POST request is discarded

Francis Daly
October 12, 2016 12:04PM
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.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Clientbodyinfileonly - POST request is discarded

yurai October 04, 2016 03:28PM

Re: Clientbodyinfileonly - POST request is discarded

Francis Daly October 04, 2016 03:48PM

Re: Clientbodyinfileonly - POST request is discarded

yurai October 07, 2016 03:47PM

Re: Clientbodyinfileonly - POST request is discarded

Francis Daly October 09, 2016 12:06PM

Re: Clientbodyinfileonly - POST request is discarded

yurai October 10, 2016 03:41AM

Re: Clientbodyinfileonly - POST request is discarded

Francis Daly October 10, 2016 12:18PM

Re: Clientbodyinfileonly - POST request is discarded

yurai October 12, 2016 06:28AM

Re: Clientbodyinfileonly - POST request is discarded

Francis Daly October 12, 2016 12:04PM

Re: Clientbodyinfileonly - POST request is discarded

yurai October 12, 2016 03:34PM

Re: Clientbodyinfileonly - POST request is discarded

Francis Daly October 12, 2016 05:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready