December 2017
Intermediate to advanced
316 pages
6h 58m
English
We can also limit the rate of access to our Nginx proxy server by rate limiting. It provides a directive called limit_conn_zone (http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html#limit_conn_zone). The format of it is this:
limit_conn_zone client_type zone=zone_type:size;
client_type can be of two types:
zone_type also changes in correspondence to the client_type. It takes values as per the following table:
| Client type | Zone type |
| $binary_remote_address | addr |
| $server_name | servers |
Nginx needs to save a few things to memory to remember the IP addresses and servers for rate limiting. size is the storage ...
Read now
Unlock full access