0

I'm using nginx limit_req, and it seems to return 404 on blocked requests instead of 503.

My settings are as followed:

limit_req_zone $binary_remote_addr zone=ratelimit:10m rate=2r/m;
limit_req zone=ratelimit;
limit_req_status 503;

After testing, I still get 404 responses when requesting over the limit. How can I force it to return 503 instead?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.