memcached_bind

Syntax: memcached_bind address [ transparent ] | off; Default: — Context: http, server, location This directive appeared in version 0.8.22. Makes outgoing connections to a memcached server originate from the specified local IP address with an optional port (1.11.2). Parameter value can contain variables (1.3.12). The special value off (1.3.12) cancels the effect of the memcached_bind directive inherited from the previous configuration level, which allows the system to

http2_max_header_size

Syntax: http2_max_header_size size; Default: http2_max_header_size 16k; Context: http, server Limits the maximum size of the entire request header list after HPACK decompression. For most requests, the default limit should be enough.

http2_chunk_size

Syntax: http2_chunk_size size; Default: http2_chunk_size 8k; Context: http, server, location Sets the maximum size of chunks into which the response body is sliced. A too low value results in higher overhead. A too high value impairs prioritization due to HOL blocking.

uwsgi_next_upstream

Syntax: uwsgi_next_upstream error | timeout | invalid_header | http_500 | http_503 | http_403 | http_404 | non_idempotent | off ...; Default: uwsgi_next_upstream error timeout; Context: http, server, location Specifies in which cases a request should be passed to the next server: error an error occurred while establishing a connection with the server, passing a request to it, or reading the response header; timeout a timeout has occurred wh

hash

Syntax: hash key [consistent]; Default: — Context: upstream This directive appeared in version 1.7.2. Specifies a load balancing method for a server group where the client-server mapping is based on the hashed key value. The key can contain text, variables, and their combinations. Note that adding or removing a server from the group may result in remapping most of the keys to different servers. The method is compatible with the Cache::Memcached Perl library. If the consistent pa

fastcgi_no_cache

Syntax: fastcgi_no_cache string ...; Default: — Context: http, server, location Defines conditions under which the response will not be saved to a cache. If at least one value of the string parameters is not empty and is not equal to “0” then the response will not be saved: fastcgi_no_cache $cookie_nocache $arg_nocache$arg_comment; fastcgi_no_cache $http_pragma $http_authorization; Can be used along with the fastcgi_cache_bypass directive.

health_check

Syntax: health_check [parameters]; Default: — Context: location Enables periodic health checks of the servers in a group referenced in the surrounding location. The following optional parameters are supported: interval=time sets the interval between two consecutive health checks, by default, 5 seconds. jitter=time sets the time within which each health check will be randomly delayed, by default, there is no delay. fails=number sets the number of consecutive failed hea

sendfile

Syntax: sendfile on | off; Default: sendfile off; Context: http, server, location, if in location Enables or disables the use of sendfile(). Starting from nginx 0.8.12 and FreeBSD 5.2.1, aio can be used to pre-load data for sendfile(): location /video/ { sendfile on; tcp_nopush on; aio on; } In this configuration, sendfile() is called with the SF_NODISKIO flag which causes it not to block on disk I/O, but, instead, report back that the data ar

gzip_http_version

Syntax: gzip_http_version 1.0 | 1.1; Default: gzip_http_version 1.1; Context: http, server, location Sets the minimum HTTP version of a request required to compress a response.

spdy_headers_comp

Syntax: spdy_headers_comp level; Default: spdy_headers_comp 0; Context: http, server Sets the header compression level of a response in a range from 1 (fastest, less compression) to 9 (slowest, best compression). The special value 0 turns off the header compression.