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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -