# Limit zone nor working

**URL:** <https://www.ruby-forum.com/t/limit-zone-nor-working/220876>\
**Category:** NGINX\
**Created:** [June 22, 2012, 10:59pm UTC](https://www.ruby-forum.com/t/limit-zone-nor-working/220876 "2012-06-22T22:59:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [June 22, 2012, 10:59pm UTC](https://www.ruby-forum.com/t/limit-zone-nor-working/220876/1 "2012-06-22T22:59:36Z")

</div>

limit\_conn\_zone $remote\_user zone=peruser:10m;

limit\_conn peruser 1 ;

Not working why?

Thank you

Posted at Nginx Forum:

> **[limit zone nor working](https://forum.nginx.org/read.php?2,227812,227812#msg-227812)**
>
> limit\_conn\_zone $remote\_user zone=peruser:10m; limit\_conn peruser 1 ; Not working why? Thank you

---

<div class="post-metadata">

**Author:** ![thecrow](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a6a055/32.png) [@thecrow](https://www.ruby-forum.com/u/thecrow)\
**Post date:** [June 25, 2012, 12:57pm UTC](https://www.ruby-forum.com/t/limit-zone-nor-working/220876/2 "2012-06-25T12:57:15Z")

</div>

Hello!

On Fri, Jun 22, 2012 at 04:59:11PM -0400, thecrow wrote:

> limit\_conn\_zone $remote\_user zone=peruser:10m;
> 
> limit\_conn peruser 1 ;
> 
> Not working why?

Most likely because $remote\_user evaluates to an empty string and  
hence it’s ignored.

See here for details:

> **[Module ngx\_http\_limit\_conn\_module](http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html#limit_conn_zone)**
>
> The ngx\_http\_limit\_conn\_module module is used to limit the number of connections per the defined key, in particular, the number of connections from a single IP address.

Maxim D.
