how to use keepalive with Nginx revers proxy?

Maxim Dounin mdounin at mdounin.ru
Mon Dec 14 16:29:21 UTC 2015


Hello!

On Sun, Dec 13, 2015 at 09:28:27PM -0500, winghokwan wrote:

> I have the same issue. I use Lua and Redis for the reverse proxy lookup and
> don't use upstream. How to use keepalive then?

The only way now is to define upstream{} blocks in advance, and 
then provide appropriate upstream{} block name from your dynamic 
lookup code.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list