Show all posts by user
Discussions in Russian
Page 1 of 1 Pages: 1
Results 1 - 4 of 4
Решение здесь: http://forum.nginx.org/read.php?2,227641
Если знаете решение лучше, буду рад прочитать.
by
LexxTheFox
-
Russian Forum
Valentin V. Bartenev Wrote:
-------------------------------------------------------
> http {
>
> map $http_user_agent $limit_bots {
> default '';
> ~*(google|bing|yandex|msnbot)
> $binary_remote_addr;
> }
>
> limit_req_zone $limit_bots zone=bots:10m
> rate=1r/m;
>
> server {
> location
by
LexxTheFox
-
Nginx Mailing List - English
Hello.
I need to check client's user agent and apply different limit_req rules for different UAs.
I've been trying to do it this way:
http {
limit_req_zone $binary_remote_addr zone=bots:10m rate=1r/m;
server {
...
location / {
if ($http_user_agent ~* (google|bing|yandex|msnbot) )
{
limit_req zone=bots burst=5 nodelay;
}
include balancer.conf;
}}}
But apparently I'm missing some
by
LexxTheFox
-
Nginx Mailing List - English
Доброго дня!
У меня возникла такая проблема: не могу понять как правильно написать конфигурацию для того чтобы ограничивать количество подключений клиентам с определённым юзерагентом. Задача проста - нужно проверят
by
LexxTheFox
-
Russian Forum