keepalive option without ngx_http_upstream_keepalive

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


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 

    upstream {
        keepalive 5;

produces the following error during configuration parsing:

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

Maxim Dounin

More information about the nginx mailing list