nginx – ngnix refuses my request using limit_req / limit_req_zone
I got some issue with ngninx. When i try to setup the limit request.
I configure by 10 request by second but when i call my endpoint, ngninx refuses all my requests.
Call failed with status code 503 (Service Temporarily Unavailable)
bellow my configuration, what I do wrong ?
limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s;
And my location definition
location /test {
limit_req zone=one burst=30 nodelay;
}
Thanks for your help
Note : if i change the location to /test2
and call my endpoint /test
all query are accepted
Read more here: Source link