I have a simple PHP file upload script that uploads a file. The server consists of 1 nginx reverse proxy and another nginx server (upstream). The problem is that when I try to upload very large files ~ 2GB then I get an error: "504 Gateway Time-out" Here is my reverse proxy configuration: ---------------------------------- server { listen 80; server_name upload.by martinszeltins - How to...
I'm wondering how I can use HTTP headers and based on those headers I would like to proxy_pass it to different servers? For example if the HTTP "accept" header is set to "text/html" then I want to proxy_pass to server 1, and otherwise to server 2. I'm looking for something like this but don't know how to do it. server { listen 80; server_name www.test.io;by martinszeltins - How to...