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

recursive_error_pages

Syntax: recursive_error_pages on | off; Default: recursive_error_pages off; Context: http, server, location Enables or disables doing several redirects using the error_page directive. The number of such redirects is limited.

read_ahead

Syntax: read_ahead size; Default: read_ahead 0; Context: http, server, location Sets the amount of pre-reading for the kernel when working with file. On Linux, the posix_fadvise(0, 0, 0, POSIX_FADV_SEQUENTIAL) system call is used, and so the size parameter is ignored. On FreeBSD, the fcntl(O_READAHEAD, size) system call, supported since FreeBSD 9.0-CURRENT, is used. FreeBSD 7 has to be patched.

random_index

Syntax: random_index on | off; Default: random_index off; Context: location Enables or disables module processing in a surrounding location.

real_ip_header

Syntax: real_ip_header field | X-Real-IP | X-Forwarded-For | proxy_protocol; Default: real_ip_header X-Real-IP; Context: http, server, location Defines the request header field whose value will be used to replace the client address. The X-Real-IP and X-Forwarded-For parameters may contain an optional port (1.11.0). The address and port should be specified according to RFC 3986. The proxy_protocol parameter (1.5.12) changes the client address to the one from the

proxy_upload_rate

Syntax: proxy_upload_rate rate; Default: proxy_upload_rate 0; Context: stream, server This directive appeared in version 1.9.3. Limits the speed of reading the data from the client. The rate is specified in bytes per second. The zero value disables rate limiting. The limit is set per a connection, so if the client simultaneously opens two connections, the overall rate will be twice as much as the specified limit.

proxy_timeout

Syntax: proxy_timeout timeout; Default: proxy_timeout 10m; Context: stream, server Sets the timeout between two successive read or write operations on client or proxied server connections. If no data is transmitted within this time, the connection is closed.

queue

Syntax: queue number [timeout=time]; Default: — Context: upstream This directive appeared in version 1.5.12. If an upstream server cannot be selected immediately while processing a request, the request will be placed into the queue. The directive specifies the maximum number of requests that can be in the queue at the same time. If the queue is filled up, or the server to pass the request to cannot be selected within the time period specified in the timeout parameter, the 502 (Ba

proxy_temp_path

Syntax: proxy_temp_path path [level1 [level2 [level3]]]; Default: proxy_temp_path proxy_temp; Context: http, server, location Defines a directory for storing temporary files with data received from proxied servers. Up to three-level subdirectory hierarchy can be used underneath the specified directory. For example, in the following configuration proxy_temp_path /spool/nginx/proxy_temp 1 2; a temporary file might look like this: /spool/nginx/proxy_temp/7/45/00

proxy_timeout

Syntax: proxy_timeout timeout; Default: proxy_timeout 24h; Context: mail, server Sets the timeout between two successive read or write operations on client or proxied server connections. If no data is transmitted within this time, the connection is closed.