large_client_header_buffers

Syntax: large_client_header_buffers number size; Default: large_client_header_buffers 4 8k; Context: http, server Sets the maximum number and size of buffers used for reading large client request header. A request line cannot exceed the size of one buffer, or the 414 (Request-URI Too Large) error is returned to the client. A request header field cannot exceed the size of one buffer as well, or the 400 (Bad Request) error is returned to the client. Buffers are allocated only on dema

keepalive_timeout

Syntax: keepalive_timeout timeout [header_timeout]; Default: keepalive_timeout 75s; Context: http, server, location The first parameter sets a timeout during which a keep-alive client connection will stay open on the server side. The zero value disables keep-alive client connections. The optional second parameter sets a value in the “Keep-Alive: timeout=time” response header field. Two parameters may differ. The “Keep-Alive: timeout=time” header field is recognized by Mo

keepalive_requests

Syntax: keepalive_requests number; Default: keepalive_requests 100; Context: http, server, location This directive appeared in version 0.8.0. Sets the maximum number of requests that can be served through one keep-alive connection. After the maximum number of requests are made, the connection is closed.

keepalive

Syntax: keepalive connections; Default: — Context: upstream This directive appeared in version 1.1.4. Activates the cache for connections to upstream servers. The connections parameter sets the maximum number of idle keepalive connections to upstream servers that are preserved in the cache of each worker process. When this number is exceeded, the least recently used connections are closed. It should be particularly noted that the keepalive directive does not limit the total nu

js_set

Syntax: js_set $variable function; Default: — Context: stream Sets an nginScript function for the specified variable.

keepalive_disable

Syntax: keepalive_disable none | browser ...; Default: keepalive_disable msie6; Context: http, server, location Disables keep-alive connections with misbehaving browsers. The browser parameters specify which browsers will be affected. The value msie6 disables keep-alive connections with old versions of MSIE, once a POST request is received. The value safari disables keep-alive connections with Safari and Safari-like browsers on Mac OS X and Mac OS X-like operating systems. The valu

js_include

Syntax: js_include file; Default: — Context: http Specifies a file that implements location and variable handlers in nginScript.

js_preread

Syntax: js_preread function; Default: — Context: stream, server Sets an nginScript function which will be called at the preread phase.

js_include

Syntax: js_include file; Default: — Context: stream Specifies a file that implements server and variable handlers in nginScript.

js_set

Syntax: js_set $variable function; Default: — Context: http Sets an nginScript function for the specified variable.