resolver_timeout

Syntax: resolver_timeout time; Default: resolver_timeout 30s; Context: stream, server This directive appeared in version 1.11.3. Sets a timeout for name resolution, for example: resolver_timeout 5s; Before version 1.11.3, this directive was available as part of our commercial subscription.

resolver_timeout

Syntax: resolver_timeout time; Default: resolver_timeout 30s; Context: http, server, location Sets a timeout for name resolution, for example: resolver_timeout 5s;

resolver_timeout

Syntax: resolver_timeout time; Default: resolver_timeout 30s; Context: mail, server Sets a timeout for DNS operations, for example: resolver_timeout 5s;

resolver

Syntax: resolver address ... [valid=time] [ipv6=on|off]; Default: — Context: http, server, location Configures name servers used to resolve names of upstream servers into addresses, for example: resolver 127.0.0.1 [::1]:5353; An address can be specified as a domain name or IP address, and an optional port (1.3.1, 1.2.2). If port is not specified, the port 53 is used. Name servers are queried in a round-robin fashion. Before version 1.1.7, only a single name serve

resolver

Syntax: resolver address ... [valid=time] [ipv6=on|off]; Default: — Context: stream, server This directive appeared in version 1.11.3. Configures name servers used to resolve names of upstream servers into addresses, for example: resolver 127.0.0.1 [::1]:5353; An address can be specified as a domain name or IP address, and an optional port. If port is not specified, the port 53 is used. Name servers are queried in a round-robin fashion. By default, nginx will lo

resolver

Syntax: resolver address ... [valid=time];resolver off; Default: resolver off; Context: mail, server Configures name servers used to find the client’s hostname to pass it to the authentication server, and in the XCLIENT command when proxying SMTP. For example: resolver 127.0.0.1 [::1]:5353; An address can be specified as a domain name or IP address, and an optional port (1.3.1, 1.2.2). If port is not specified, the port 53 is used. Name servers are queried in a round-robin fas

referer_hash_max_size

Syntax: referer_hash_max_size size; Default: referer_hash_max_size 2048; Context: server, location This directive appeared in version 1.0.5. Sets the maximum size of the valid referers hash tables. The details of setting up hash tables are provided in a separate document.

reset_timedout_connection

Syntax: reset_timedout_connection on | off; Default: reset_timedout_connection off; Context: http, server, location Enables or disables resetting timed out connections. The reset is performed as follows. Before closing a socket, the SO_LINGER option is set on it with a timeout value of 0. When the socket is closed, TCP RST is sent to the client, and all memory occupied by this socket is released. This helps avoid keeping an already closed socket with filled buffers in a FIN_WAIT1 s

request_pool_size

Syntax: request_pool_size size; Default: request_pool_size 4k; Context: http, server Allows accurate tuning of per-request memory allocations. This directive has minimal impact on performance and should not generally be used.

real_ip_recursive

Syntax: real_ip_recursive on | off; Default: real_ip_recursive off; Context: http, server, location This directive appeared in versions 1.3.0 and 1.2.1. If recursive search is disabled, the original client address that matches one of the trusted addresses is replaced by the last address sent in the request header field defined by the real_ip_header directive. If recursive search is enabled, the original client address that matches one of the trusted addresses is replaced by the l