Welcome! Log In Create A New Profile

Advanced

Re: limit req zone общий для нескольких location'ов

Валентин Бартенев
October 01, 2016 04:06PM
On Saturday 01 October 2016 13:47:05 skeletor wrote:
> Всем привет.
> Есть задача задать общий limit_req zone для нескольких локейшинов. То есть,
> суммарный лимит на любой из определённых локейшинов. Как это
> правильно/красиво задать? Пока на ум приходит лишь такая схема:
>
> location ~ (/loc1/|/some/other/location/|/yet/anotherone) {
> ...
> limit_req zone ...
> ...
> }
>

location /loc1/ {
limit_req zone ...
}

location /some/other/location/ {
limit_req zone ...
}

location /yet/anotherone {
limit_req zone ...
}

--
Валентин Бартенев
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Re: limit req zone общий для нескольких location'ов

Валентин Бартенев October 01, 2016 04:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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