keepalive option without ngx_http_upstream_keepalive

Maxim Dounin mdounin at mdounin.ru
Wed May 23 08:54:16 UTC 2012


Hello!

On Wed, May 23, 2012 at 10:21:29AM +0200, Greg wrote:

> Hi,
> 
> is it a bug or a feature that nginx didn't warn if keepalive is
> enable in upstream {} config, but without
> ngx_http_upstream_keepalive module loaded ?

If upstream keepalive module isn't compiled in the following 
config

    upstream {
        server 127.0.0.1:8080;
        keepalive 5;
    }

produces the following error during configuration parsing:

nginx: [emerg] unknown directive "keepalive" in ...

Maxim Dounin



More information about the nginx mailing list