Re: Clientbodyinfileonly - POST request is discarded

2016-10-12 Thread Francis Daly
On Wed, Oct 12, 2016 at 03:34:45PM -0400, yurai wrote: Hi there, > >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? > > Yes. Exactly this. My /tmp/nginx-client-body dir

Re: Clientbodyinfileonly - POST request is discarded

2016-10-12 Thread yurai
Hi, >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? Yes. Exactly this. My /tmp/nginx-client-body directory is empty. >There is more than one server involved. Please be ver

Re: Clientbodyinfileonly - POST request is discarded

2016-10-12 Thread Francis Daly
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 serve

Re: Clientbodyinfileonly - POST request is discarded

2016-10-12 Thread yurai
Hello, >"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

Re: Clientbodyinfileonly - POST request is discarded

2016-10-10 Thread Francis Daly
On Mon, Oct 10, 2016 at 03:41:13AM -0400, yurai wrote: Hi there, > thank you for response. I just want to transfer big file on Nginx server > inside POST request. I use method from: > https://coderwall.com/p/swgfvw/nginx-direct-file-upload-without-passing-them-through-backend > > Whole my analy

Re: Clientbodyinfileonly - POST request is discarded

2016-10-10 Thread yurai
Hello Francis, thank you for response. I just want to transfer big file on Nginx server inside POST request. I use method from: https://coderwall.com/p/swgfvw/nginx-direct-file-upload-without-passing-them-through-backend Whole my analysis and expectations are based on this article. Unfotunatel

Re: Clientbodyinfileonly - POST request is discarded

2016-10-09 Thread Francis Daly
On Fri, Oct 07, 2016 at 03:47:47PM -0400, yurai wrote: Hi there, > Unfortunately still it doesn't work as I expect - upload.txt file content is > not saved on server side in /tmp/nginx-client-body. Oh. Why do you expect that? I would only expect that to happen if I send the upload.txt file cont

Re: Clientbodyinfileonly - POST request is discarded

2016-10-07 Thread yurai
Hi Francis, I added return statement to my config as you suggested. Now config for backend s2 looks like: server { listen 8080; server_name s2; location / { root /usr/share/nginx/html/foo/bar; return 200 "Do something sensible with $http_x

Re: Clientbodyinfileonly - POST request is discarded

2016-10-04 Thread Francis Daly
On Tue, Oct 04, 2016 at 03:28:18PM -0400, yurai wrote: Hi there, > Unfortunately I get "HTTP/1.1 405 Not Allowed" error code all the time. The "back-end" thing that you POST to must be able to handle the POST. Right now, you just ask nginx to serve a file from the filesystem, which does not acc

Clientbodyinfileonly - POST request is discarded

2016-10-04 Thread yurai
Hello Nginx community, I try to perform big file upload on my Nginx server basing on instructions from https://coderwall.com/p/swgfvw/nginx-direct-file-upload-without-passing-them-through-backend Unfortunately I get "HTTP/1.1 405 Not Allowed" error code all the time. 1. My minimal configuration: