Welcome! Log In Create A New Profile

Advanced

Re: negation in the map directive of nginx

September 11, 2022 11:22AM
Thanks Francis for your response.

I tried the approach you suggested and it still doesn't seem to work.
This is what I am doing right now :-

limit_req_zone $default_client_id zone=sample_zone:50k rate=3r/m sync;
map $client_id $default_client_id {
ZZZZZ "";
$client_id $client_id;
}

When I try to hit the gateway with ZZZZ client_id, it still limits the requests according to 3rpm configuration. Am I doing this wrong?

(PS - I'm pretty new to nginx, sorry if I'm asking dumb questions:) )
Subject Author Posted

negation in the map directive of nginx

libresco_27 September 08, 2022 01:25PM

Re: negation in the map directive of nginx

Francis Daly September 08, 2022 06:56PM

Re: negation in the map directive of nginx

libresco_27 September 11, 2022 11:22AM

Re: negation in the map directive of nginx

Francis Daly September 11, 2022 06:58PM

Re: negation in the map directive of nginx

teodorescu.serban September 09, 2022 02:53AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 118
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready