Welcome! Log In Create A New Profile

Advanced

Re: map и limit req

March 20, 2013 06:38PM
странные вилы, либо я что-то опять не понимаю, если прописано

http {
..............
map $http_user_agent $var {
default "";
}

limit_req_zone $var zone=limit:10m rate=10r/m;

limit_req_zone $binary_remote_addr zone=testzone:10m rate=10r/m;
limit_req zone=testzone burst=1;
}

server {
...
limit_req zone=limit burst=1
}

зона testzone не срабатывает
а если убрать строку
limit_req zone=limit burst=1
из блока server и прописать ее в http

http {
.......
map $http_user_agent $var {
default "";
}

limit_req_zone $var zone=limit:10m rate=10r/m;
limit_req zone=limit burst=1

limit_req_zone $binary_remote_addr zone=testzone:10m rate=10r/m;
limit_req zone=testzone burst=1;
......
}

то начинает работать
никто не сталкивался с такой странностью ?
Subject Author Posted

Re: map и limit req

Ruslan Ermilov March 20, 2013 03:10PM

Re: map и limit req

sergey_s March 20, 2013 04:06PM

Re: map и limit req

sergey_s March 20, 2013 06:38PM

Re: map и limit req

Homutov Vladimir March 21, 2013 12:34AM

Re: map и limit req

Ruslan Ermilov March 21, 2013 02:26AM

Re: map и limit req

sergey_s March 21, 2013 04:02AM

Re: map и limit req

Валентин Бартенев March 21, 2013 09:26AM

Re: map и limit req

sergey_s March 21, 2013 09:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 104
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready