<div dir="ltr"><div>Hi all, <br></div><div><br></div>can I expect that proxy_pass will keep connection to remote server that is being proxied?<br><div><br></div><div>when I'm using setup client -> proxy -> server it looks to work<br></div><div>but when I'm using:<br></div><div>client -> 1stProxy_upstream -> proxy -> server<br></div><div>connection between 1stProxy and proxy is being kept thanks to keepalive 100, but proxy makes new connection every new request, very simple setup:<br><br></div><div>http {<br>  server {<br>    listen 8080;<br>    location / {<br>      keepalive_disable none;<br>      keepalive_requests 1000;<br>      keepalive_timeout 300s;<br>      proxy_cache proxy-cache;<br>      proxy_cache_valid 200 302 301 30m;<br>      proxy_cache_valid any 1m;<br>      proxy_cache_key $scheme://$http_host$request_uri;<br>      proxy_pass $scheme://$http_host$request_uri;<br>      proxy_http_version 1.1;<br>      proxy_set_header Connection "";<br>    }<br>  }<br>}</div><div>I would expect that when client connects proxy and it works then it should also works when proxy connects upstream proxy....</div><div><br></div><div>any ideas?</div><div>thanks in advance<br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Łukasz Tasz<br></div><div>RTKW<br></div></div></div></div></div></div>