Welcome! Log In Create A New Profile

Advanced

limit_req does not work

February 22, 2012 03:16PM
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;
}
}
}
Subject Author Posted

limit_req does not work

double February 22, 2012 03:16PM

Re: limit_req does not work

Maxim Dounin February 28, 2012 08:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready