February 2020
Intermediate to advanced
404 pages
8h 42m
English
We can also limit the rate of access to our Nginx proxy server by rate limiting. This 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 one of two types:
zone_type also changes in correspondence to client_type. It takes values as per the following table:
| Client type | Zone type |
| $binary_remote_address | addr |
| $server_name | servers |
Nginx has to save a few things in memory to remember the IP addresses and servers for rate limiting. The size parameter ...
Read now
Unlock full access