HTTP limit conn directives
limit_conn_zone directive
http context; allocates shared state for counts keyed by a value; empty keys are not counted.
Formal Syntax & Structure
nginx syntaxnginx
limit_conn_zone key zone=name:size;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| key | expression | Identity for active request accounting; empty keys are excluded. |
| zone | zone=name:size | Shared storage for per-key counters. |
Working Example
Example Snippetnginx
limit_conn_zone $binary_remote_addr zone=streamclients:1m;