limit_conn_zone Nginx Unknow error

Maxim Dounin mdounin at mdounin.ru
Mon Apr 7 16:02:35 UTC 2014


Hello!

On Mon, Apr 07, 2014 at 09:51:31AM -0500, Raul Hugo wrote:

> What am I doing wrong here?
> 
>     http {
>              limit_conn_zone $binary_remote_addr zone=one:63m;
> 
>             server {
>                  location /downloads/ {
>                   limit_conn one 10;}
> 
> [root at batman1 ~]# service nginx configtest
> nginx: [emerg] the size 66060288 of shared memory zone "one" conflicts
> with already declared size 0 in /etc/nginx/nginx.conf:60
> nginx: configuration file /etc/nginx/nginx.conf test failed
> 
> 
> I read the nginx manual online, and it look well. I hope that someone have
> a tip.

>From the message it looks like you've tried to use limit_conn 
before limit_conn_zone is defined (probably indirectly by using 
the "include" directive), i.e. wrote something like

    limit_conn one 10;
    limit_conn_zone $binary_remote_addr zone=one:63m;

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



More information about the nginx mailing list