limit_conn with variables erroring with invalid number of connections

Francis Daly francis at daoine.org
Sat Apr 29 12:41:28 UTC 2017


On Sun, Apr 23, 2017 at 09:14:20PM -0400, justink101 wrote:

Hi there,

> server {
>     limit_conn $limit_zone $limit_number;
> }
> 
> When starting NGINX getting a fatal error though. Does limit_conn support
> using variables?
> 
> error => invalid number of connections "$limit_number"

http://nginx.org/r/limit_conn

Generally, if a directive argument accepts variables, the documentation
will say that it does. Otherwise, it's probably a documentation bug.

In this case, the documentation does not say that it accepts variables,
and the error message indicates that it does not.

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list