Welcome! Log In Create A New Profile

Advanced

Re: Nginx - Rate limit when origin server response code is 401

April 26, 2018 01:10PM
Hello Viet,

I posted the same question on Digital Ocean forums and got a response suggesting to intercept errors from upstream and to rate limit based on the error using the `error_page` directive. I haven't tried it myself yet but it's worth a shot. Here's a link to the full post: https://www.digitalocean.com/community/questions/use-nginx-to-rate-limit-only-when-origin-server-response-code-is-401. Let me know if this works for you.

Regards,
Krishna Veera Reddy
Subject Author Posted

Nginx - Rate limit when origin server response code is 401

Krishna Sai Veera Reddy April 22, 2018 01:20PM

Re: Nginx - Rate limit when origin server response code is 401

viet April 25, 2018 11:15PM

Re: Nginx - Rate limit when origin server response code is 401

veerareddy April 26, 2018 01:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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