# Limit\_conn/limit\_req, side effect, need help

**URL:** <https://www.ruby-forum.com/t/limit-conn-limit-req-side-effect-need-help/183970>\
**Category:** NGINX\
**Created:** [February 23, 2010, 9:37am UTC](https://www.ruby-forum.com/t/limit-conn-limit-req-side-effect-need-help/183970 "2010-02-23T09:37:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GerMalaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/65b543/32.png) [@GerMalaz](https://www.ruby-forum.com/u/GerMalaz)\
**Post date:** [February 23, 2010, 9:37am UTC](https://www.ruby-forum.com/t/limit-conn-limit-req-side-effect-need-help/183970/1 "2010-02-23T09:37:04Z")

</div>

In nginx.conf

```
limit_zone xxxxxx $binary_remote_addr 1M;
limit_req_zone $binary_remote_addr zone=xxxxxx_freq:1M 

```

rate=30r/m;

In site definition  
limit\_conn xxxxxx 3;  
limit\_req zone=xxxxxx\_freq burst=1 nodelay;

First connection usually gets a 503, subsequent ones work.

First connection usually refers to a dir without / final, then another  
with / is requested, then dir/index.php.

Any help will be appreciated.  
Thanks,  
Gerardo

Posted at Nginx Forum:

> **[limit\_conn/limit\_req, side effect, need help](https://forum.nginx.org/read.php?2,56349,56349#msg-56349)**
>
> In nginx.conf limit\_zone xxxxxx $binary\_remote\_addr 1M; limit\_req\_zone $binary\_remote\_addr zone=xxxxxx\_freq:1M rate=30r/m; In site definition limit\_conn xxxxxx 3; limit\_req zone=xxxxxx\_freq burst=1 nodelay;
