how to use keepalive with Nginx revers proxy?

Makailol Charls makailol7 at
Wed Apr 2 13:25:42 UTC 2014


Can some one provide me an example to set keep alive connection between
Nginx(reverse proxy) and backend server?

I can not use upstream module as my backend IP is dynamic based on
variable. So I can not use keepalive directive of upstream.

I have used below directive in location block.
proxy_pass http://$IP ;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list