Complete the code to set the rate limit zone name to 'mylimit'.
limit_req_zone $binary_remote_addr zone=[1]:10m rate=1r/s;
The zone name 'mylimit' is used to identify the shared memory zone for rate limiting.
Complete the code to apply the rate limit using the zone 'mylimit'.
limit_req zone=[1] burst=5 nodelay;
The 'limit_req' directive uses the zone name defined earlier to apply the rate limit.
Fix the error in the rate limit directive to correctly limit requests to 10 per second.
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=[1];
The correct syntax for rate is '10r/s' meaning 10 requests per second.
Fill both blanks to limit requests from the same IP to 5 per second with a burst of 10.
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=[1]; limit_req zone=mylimit burst=[2] nodelay;
The rate is set to '5r/s' for 5 requests per second, and burst is set to 10 to allow short bursts.
Fill all three blanks to create a rate limit zone named 'limitzone' with 20MB memory, limit 15 requests per second, and apply it with burst 20.
limit_req_zone $binary_remote_addr zone=[1]:[2] rate=[3]; limit_req zone=limitzone burst=20 nodelay;
The zone name is 'limitzone', memory size is '20m' (20 megabytes), and rate is '15r/s' for 15 requests per second.