dns - How to limit request per virtual host on Nginx? -
i have nginx server serving web application customers have domains (cnames) access websites.
does nginx have way limit number of accesses 1 of domains period of time?
example:
restriction need: 2000 requests / domain / minute
so, in 1 specific period of time...
www.websitea.com.br --- 1456 requests / minute ok!
www.websiteb.com.br --- 1822 requests / minute ok!
www.websitec.com.br --- 2001 requests / minute locked temporarily
does know how make such restriction?
you can refer httplimitreqmodule in nginx. limit_req , limit_req_zone may helps.
Comments
Post a Comment