[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nginx
Subject:    Re: limit_req does not work
From:       Maxim Dounin <mdounin () mdounin ! ru>
Date:       2012-02-28 13:09:05
Message-ID: 20120228130905.GY67687 () mdounin ! ru
[Download RAW message or body]

Hello!

On Wed, Feb 22, 2012 at 03:16:15PM -0500, double wrote:

> Nginx 1.1.15 does not block request if I use "try_files". This is my
> markup (simplified):
> 
> nginx.conf:
> http {
>     limit_req_zone $binary_remote_addr  zone=zone1:32m  rate=2r/s;
>     limit_req_zone $binary_remote_addr  zone=zone2:32m  rate=12r/m;
>     server {
>         location @backend {
>             limit_req zone=zone1 burst=10;
>             limit_req zone=zone2 burst=100 nodelay;
>             [...]
>             fastcgi_pass                   
> unix:/var/run/fastcgi/dispatch.sock;
>             [...]
>         }
>         location / {
>             try_files $uri @backend;
>             expires max;
>         }
>     }
> }

You may want to test again, the above works without any problems 
here.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic