February 2018
Beginner to intermediate
348 pages
9h 40m
English
In a similar fashion, the Limit request module allows you to limit the amount of requests for a defined zone.
Defining the zone is done via the limit_req_zone directive; its syntax differs from the Limit zone equivalent directive:
limit_req_zone $variable zone=name:max_memory_size rate=rate;
The directive parameters are identical, except for the trailing rate, expressed in requests per second (r/s) or requests per minute (r/m). It defines a request rate that will be applied to clients where the zone is enabled. To apply a zone to a location, use the limit_req directive:
limit_req zone=name burst=burst [nodelay];
The burst parameter defines the maximum possible bursts of requests. When the amount of requests received from a ...
Read now
Unlock full access