Joined May 2013
·

craigloftus

UK
·
·

Posted to Nginx direct file upload over 1 year ago

I found this very useful bit hit a couple of problems with it.

First, by default nginx was configured to store the files to /tmp/ as a different user to that I had running the proxy processes. Editing the user directive in /etc/nginx/nginx.conf was my solution to this.

Second, without adding "proxy_set_header Content-Length 0;" the response from my proxy just 'hung' open and had to be manually closed. This is a little confusing, but it seems to work for me :)

Achievements
19 Karma
0 Total ProTip Views
Interests & Skills