Welcome! Log In Create A New Profile

Advanced

Nginx Reverse Proxy File Upload Failure

Posted by nickwebha 
Nginx Reverse Proxy File Upload Failure
January 01, 2016 04:39PM
I am running Nginx v1.8.0 to serve all my static files and node.js to do the dynamic stuff. One of the things Nginx needs to do is proxy files over to node.js which stores the file. node.js seems to get ~26K of the file and then nothing (not even sure the connection closes when the data "finishes" sending).

My configuration is so:
location /attachment_upload/ {
client_body_temp_path /tmp/;
client_body_in_file_only clean;
client_body_buffer_size 256k;
client_max_body_size 1g;

proxy_set_header X-FILE $request_body_file;
proxy_http_version 1.1;
proxy_buffering off;
proxy_pass http://10.10.1.20:8090/attachment_upload/;
expires epoch;
}

I had setup curl to see if I could get more information. It returns right away (so it does not look like a time-out to me) without error. I have checked the Nginx error logs and do not see anything in there. If I take Nginx out of the picture node.js does exactly what I would expect it to.

I have been at this for days. I have tried everything I came across. Not sure what to check next...
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
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