Mastering Nginx

(Ron) #1

Directive Reference


[ 220 ]

Directive Explanation Context/Default
client_body_timeout Specifies the length of time
between successive read
operations of the client body.
If reached, the client receives
a 408 error message (Request
Timeout).

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

client_header_
buffer_size

Used for specifying a buffer size
for the client request header, when
this needs to be larger than the
default 1 KB.

Valid contexts: http,
server
Default value: 1k

client_header_
timeout

Specifies the length of time for
reading the entire client header.
If reached, the client receives
a 408 error message (Request
Timeout).

Valid contexts: http,
server
Default value: 60s

client_max_body_
size

Defines the largest allowable
client request body, before a 413
(Request Entity Too Large)
error is returned to the browser.

Valid contexts: http,
server, location
Default value: 1m

connection_pool_
size

Fine tunes per-connection memory
allocation.

Valid contexts: http,
server
Default value: 256
create_full_put_
path

Allows recursive directory
creation when using WebDAV.

Valid contexts: http,
server, location
Default value: off
daemon Sets whether or not to daemonize
the nginx process.

Valid context: main
Default value: on
dav_access Sets filesystem access permissions
for newly-created files and
directories. If group or all is
specified, user may be omitted.

Valid contexts: http,
server, location
Default value:
user:rw
dav_methods Allows the specified HTTP and
WebDAV methods. When PUT
is used, a temporary file is first
created and then renamed. So, it's
recommended to put client_
body_temp_path on the same
filesystem as the destination. A
modification date for such files
may be specified in the Date
header.

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