limit_conn_zone

Syntax: limit_conn_zone key zone=name:size; Default: — Context: http Sets parameters for a shared memory zone that will keep states for various keys. In particular, the state includes the current number of connections. The key can contain text, variables, and their combination. Requests with an empty key value are not accounted. Prior to version 1.7.6, a key could contain exactly one variable. Usage example: limit_conn_zone $binary_remote_addr zone=addr:10m; Here,

limit_conn_status

Syntax: limit_conn_status code; Default: limit_conn_status 503; Context: http, server, location This directive appeared in version 1.3.15. Sets the status code to return in response to rejected requests.

limit_conn_log_level

Syntax: limit_conn_log_level info | notice | warn | error; Default: limit_conn_log_level error; Context: stream, server Sets the desired logging level for cases when the server limits the number of connections.

limit_conn_log_level

Syntax: limit_conn_log_level info | notice | warn | error; Default: limit_conn_log_level error; Context: http, server, location This directive appeared in version 0.8.18. Sets the desired logging level for cases when the server limits the number of connections.

limit_conn

Syntax: limit_conn zone number; Default: — Context: stream, server Sets the shared memory zone and the maximum allowed number of connections for a given key value. When this limit is exceeded, the server will close the connection. For example, the directives limit_conn_zone $binary_remote_addr zone=addr:10m; server { ... limit_conn addr 1; } allow only one connection per an IP address at a time. When several limit_conn directives are specified, any configured limit w

limit_conn

Syntax: limit_conn zone number; Default: — Context: http, server, location Sets the shared memory zone and the maximum allowed number of connections for a given key value. When this limit is exceeded, the server will return the 503 (Service Temporarily Unavailable) error in reply to a request. For example, the directives limit_conn_zone $binary_remote_addr zone=addr:10m; server { location /download/ { limit_conn addr 1; } allow only one connection per an IP add

least_time

Syntax: least_time connect | first_byte | last_byte; Default: — Context: upstream Specifies that a group should use a load balancing method where a connection is passed to the server with the least average time and least number of active connections, taking into account weights of servers. If there are several such servers, they are tried in turn using a weighted round-robin balancing method. If the connect parameter is specified, time to connect to the upstream server

least_time

Syntax: least_time header | last_byte; Default: — Context: upstream This directive appeared in version 1.7.10. Specifies that a group should use a load balancing method where a request is passed to the server with the least average response time and least number of active connections, taking into account weights of servers. If there are several such servers, they are tried in turn using a weighted round-robin balancing method. If the header parameter is specified, time to receiv

least_conn

Syntax: least_conn; Default: — Context: upstream Specifies that a server group should use a load balancing method where a connection is passed to the server with the least number of active connections, taking into account weights of servers. If there are several such servers, they are tried in turn using a weighted round-robin balancing method.

least_conn

Syntax: least_conn; Default: — Context: upstream This directive appeared in versions 1.3.1 and 1.2.2. Specifies that a group should use a load balancing method where a request is passed to the server with the least number of active connections, taking into account weights of servers. If there are several such servers, they are tried in turn using a weighted round-robin balancing method.