# NGINX limit\_req tornado web problems

**URL:** <https://www.ruby-forum.com/t/nginx-limit-req-tornado-web-problems/209402>\
**Category:** NGINX\
**Created:** [July 13, 2011, 12:02pm UTC](https://www.ruby-forum.com/t/nginx-limit-req-tornado-web-problems/209402 "2011-07-13T12:02:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [July 13, 2011, 12:02pm UTC](https://www.ruby-forum.com/t/nginx-limit-req-tornado-web-problems/209402/1 "2011-07-13T12:02:57Z")

</div>

Hi all,

I’m trying to use the NGINX limit\_req for my app APIs which has 1 NGINX

- 4 app. server frontends.

My conf is like the following:

http{  
…  
limit\_req\_zone $binary\_remote\_addr zone=data\_zone:10m rate=2r/s;

…

server{

…  
location ^~ /data/new/ {  
limit\_req zone=data\_zone burst=5 nodelay;  
}  
…

But it doesn’t work, in fact I’m able to call my API /data/new several  
times per second with success…and it isn’t a good thing 🙂  
Am I missing something?

Thanks in advance.

Best,

Antonio

–

Antonio Pintus

Technologist  
ICT group  
CRS4, Center for Advanced Studies, Research and Development in Sardinia

e-mail: removed\_email\_address@domain.invalid  
Phone: +39 0709250268  
Skype: pintuxskype

CRS4 Home: [http://www.crs4.it](http://www.crs4.it)
