Mastering Nginx

(Ron) #1
Chapter 2

[ 25 ]

Client directives


This set of directives deals with the aspects of the client connection itself, as well as


with different types of clients.


Table: HTTP client directives

Directive Explanation
chunked_transfer_encoding Allows disabling the standard HTTP/1.1
chunked transfer encoding in responses to
clients.
client_body_buffer_size Used to set a buffer size for the client
request body larger than the default
two memory pages, in order to prevent
temporary files from being written to the
disk.
client_body_in_file_only Used for debugging or further processing
of the client request body. This directive
can be set to on to force save the client
request body to a file.
client_body_in_single_buffer This directive forces NGINX to save the
entire client request body in a single
buffer, to reduce copy operations.
client_body_temp_path Defines a directory path for saving the
client request body.
client_body_timeout Specifies the length of time between
successive read operations of the client
body.
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.
client_header_timeout This timeout is the length of time for
reading the entire client header.
client_max_body_size Defines the largest allowable client request
body, before a 413 (Request Entity
Too Large) error is returned to the
browser.
keepalive_disable Disables the keep-alive requests for certain
browser types.
keepalive_requests Defines how many requests may be made
over one keep-alive connection before it
is closed.
Free download pdf