Multiple limit_req_zone for same site

itpp2012 nginx-forum at nginx.us
Fri Sep 11 11:06:51 UTC 2015


You can define several zones;
  limit_req_zone $binary_remote_addr zone=flooda:20m rate=128r/s;
  limit_req_zone $binary_remote_addr zone=floodp:20m rate=64r/s;
  limit_req_zone $binary_remote_addr zone=floodh:10m rate=64r/s;

and use them separately in location(s) /limited/ { limit_req zone=floodh
burst=64 nodelay; }

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261573,261574#msg-261574



More information about the nginx mailing list