proxy_send_timeout

Syntax: proxy_send_timeout time; Default: proxy_send_timeout 60s; Context: http, server, location Sets a timeout for transmitting a request to the proxied server. The timeout is set only between two successive write operations, not for the transmission of the whole request. If the proxied server does not receive anything within this time, the connection is closed.

proxy_send_lowat

Syntax: proxy_send_lowat size; Default: proxy_send_lowat 0; Context: http, server, location If the directive is set to a non-zero value, nginx will try to minimize the number of send operations on outgoing connections to a proxied server by using either NOTE_LOWAT flag of the kqueue method, or the SO_SNDLOWAT socket option, with the specified size. This directive is ignored on Linux, Solaris, and Windows.

proxy_responses

Syntax: proxy_responses number; Default: — Context: stream, server This directive appeared in version 1.9.13. Sets the number of datagrams expected from the proxied server in response to the client request if the UDP protocol is used. By default, the number of datagrams is not limited: the response datagrams will be sent until the proxy_timeout value expires.

proxy_request_buffering

Syntax: proxy_request_buffering on | off; Default: proxy_request_buffering on; Context: http, server, location This directive appeared in version 1.7.11. Enables or disables buffering of a client request body. When buffering is enabled, the entire request body is read from the client before sending the request to a proxied server. When buffering is disabled, the request body is sent to the proxied server immediately as it is received. In this case, the request cannot be passed

proxy_redirect

Syntax: proxy_redirect default;proxy_redirect off;proxy_redirect redirect replacement; Default: proxy_redirect default; Context: http, server, location Sets the text that should be changed in the “Location” and “Refresh” header fields of a proxied server response. Suppose a proxied server returned the header field “Location: http://localhost:8000/two/some/uri/”. The directive proxy_redirect http://localhost:8000/two/ http://frontend/one/; will rewrite this string to “Location:

proxy_read_timeout

Syntax: proxy_read_timeout time; Default: proxy_read_timeout 60s; Context: http, server, location Defines a timeout for reading a response from the proxied server. The timeout is set only between two successive read operations, not for the transmission of the whole response. If the proxied server does not transmit anything within this time, the connection is closed.

proxy_protocol_timeout

Syntax: proxy_protocol_timeout timeout; Default: proxy_protocol_timeout 30s; Context: stream, server This directive appeared in version 1.11.4. Specifies a timeout for reading the PROXY protocol header to complete. If no entire header is transmitted within this time, the connection is closed.

proxy_protocol

Syntax: proxy_protocol on | off; Default: proxy_protocol off; Context: stream, server This directive appeared in version 1.9.2. Enables the PROXY protocol for connections to a proxied server.

proxy_pass_request_headers

Syntax: proxy_pass_request_headers on | off; Default: proxy_pass_request_headers on; Context: http, server, location Indicates whether the header fields of the original request are passed to the proxied server. location /x-accel-redirect-here/ { proxy_method GET; proxy_pass_request_headers off; proxy_pass_request_body off; proxy_pass ... } See also the proxy_set_header and proxy_pass_request_body directives.

proxy_pass_request_body

Syntax: proxy_pass_request_body on | off; Default: proxy_pass_request_body on; Context: http, server, location Indicates whether the original request body is passed to the proxied server. location /x-accel-redirect-here/ { proxy_method GET; proxy_pass_request_body off; proxy_set_header Content-Length ""; proxy_pass ... } See also the proxy_set_header and proxy_pass_request_headers directives.