Welcome! Log In Create A New Profile

Advanced

keepalive option without ngx_http_upstream_keepalive

Posted by Greg 
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 ?

Regards,
--
Greg
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login