Mastering Nginx

(Ron) #1

Directive Reference


[ 238 ]

Directive Explanation Context/Default
max_ranges Sets the maximum number of
ranges allowed in a byte-range
request. Specifying 0 disables
byte-range support.

Valid contexts: http,
server, location
Default value: -

memcached_bind Specifies which address should be
used for outgoing connections to a
memcached server.

Valid contexts: http,
server, location
Default value: -
memcached_buffer_
size

The size of the buffer for the
response from memcached.
This response is then sent
synchronously to the client.

Valid contexts: http,
server, location
Default value: 4k|8k

memcached_connect_
timeout

The maximum length of time
NGINX will wait for its connection
to be accepted when making a
request to a memcached server.

Valid contexts: http,
server, location
Default value: 60s

memcached_gzip_flag Specifies a value, when found in
the response from a memcached
server, which will set the
Content-Encoding header to
gzip.

Valid contexts: http,
server, location
Default value: -

memcached_next_
upstream

Refer to the Memcached module
directives table in the Caching in
the database section in Chapter 7,
NGINX for the Developer.

Valid contexts: http,
server, location
Default value: error
timeout
memcached_pass Specifies the name or address of a
memcached server and its port. It
may also be a server group, as
declared in an upstream context.

Valid contexts:
location, if in
location
Default value: -
memcached_read_
timeout

Specifies the length of time that
needs to elapse between two
successive read operations from
a memcached server before the
connection is closed.

Valid contexts: http,
server, location
Default value: 60s

memcached_send_
timeout

The length of time that needs to
elapse between two successive
write operations to a memcached
server before the connection is
closed.

Valid contexts: http,
server, location
Default value: 60s
Free download pdf