If I have 3 web servers, and 1 nginx sitting in front of them (public ip mapped to my nginx server).<div><br></div><div>My other backend servers are:</div><div><br></div><div><a href="http://www1.example.com">www1.example.com</a></div>
<div><a href="http://www2.example.com">www2.example.com</a></div><div><a href="http://www3.example.com">www3.example.com</a></div><div><br></div><div>My users are upload large files, so I don't want the request going through my nginx front-end server and then to my <a href="http://wwwX.example.com">wwwX.example.com</a> server.</div>
<div><br></div><div>Could it be possible to have nginx map the request to a specific backend server and then have the request continue with that specific server?</div><div><br></div><div>So a request using a proxy I believe goes like this:</div>
<div><br></div><div>client request => proxy => backend-server and then it goes from backend-server => proxy => response</div><div><br></div><div>But I want it to go:</div><div><br></div><div>client request => proxy and then backend-server => response => client</div>
<div><br></div><div>i.e. use nginx simply to map the request to a specific server, and then the client will continue the request/response with that specific server that is publicly accessible.</div><div><br></div><div>Now this request is a single request/response, it will not continue on. The client is simply uploading a file or posting a file and that's it.</div>