Welcome! Log In Create A New Profile

Advanced

Re: limit_zone и составной ключ

July 14, 2014 05:20AM
Все, придумал:
http {
limit_req_zone $zone_limit_key zone=one:50m rate=2r/s;
limit_conn_zone $zone_limit_key zone=addr:50m;

server {
set $zone_limit_key "${binary_remote_addr}-${host}";
limit_req zone=one burst=5 nodelay;
limit_conn addr 8;
}
}
Subject Author Posted

limit_zone и составной ключ

Hett July 14, 2014 03:01AM

Re: limit_zone и составной ключ

Hett July 14, 2014 05:20AM

Re: limit zone и составной ключ

Валентин Бартенев July 14, 2014 03:18AM

Re: limit zone и составной ключ

Hett July 14, 2014 05:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
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