Anyway to limit amount of requests to no more then 20 requests per hour for each file?

Valentin V. Bartenev ne at vbart.ru
Tue Jun 5 20:54:48 UTC 2012


On Wednesday 06 June 2012 00:30:26 Joseph Cabezas wrote:
> Hello,
> 
> Iam trying to avoid a seperate location {} for each file, instead just
> limit the amount of reqeusts per second based on each object.
> 

If you're happy with 60 requests per hour, then you can take advantage of
the http_limit_req module.

http://nginx.org/en/docs/http/ngx_http_limit_req_module.html

  limit_req_zone $uri zone=one:32m rate=1r/m;

 wbr, Valentin V. Bartenev



More information about the nginx mailing list