add_header

Syntax: add_header name value [always]; Default: — Context: http, server, location, if in location Adds the specified field to a response header provided that the response code equals 200, 201, 204, 206, 301, 302, 303, 304, or 307. A value can contain variables. There could be several add_header directives. These directives are inherited from the previous level if and only if there are no add_header directives defined on the current level. If the always parameter is specified

uwsgi_pass_request_body

Syntax: uwsgi_pass_request_body on | off; Default: uwsgi_pass_request_body on; Context: http, server, location Indicates whether the original request body is passed to the uwsgi server. See also the uwsgi_pass_request_headers directive.

client_body_in_single_buffer

Syntax: client_body_in_single_buffer on | off; Default: client_body_in_single_buffer off; Context: http, server, location Determines whether nginx should save the entire client request body in a single buffer. The directive is recommended when using the $request_body variable, to save the number of copy operations involved.

hls_fragment

Syntax: hls_fragment time; Default: hls_fragment 5s; Context: http, server, location Defines the default fragment length for playlist URIs requested without the “len” argument.

Debugging nginx with DTrace pid provider

Debugging nginx with DTrace pid provider This article assumes the reader has a general knowledge of nginx internals and DTrace. Although nginx built with the --with-debug option already provides a lot of information about request processing, it is sometimes desirable to trace particular parts of code path more thoroughly and at the same time omit the rest of debugging output. DTrace pid provider (available on Solaris, Mac OS X) is a useful tool to explore userland program’s internals, since

session_log_format

Syntax: session_log_format name string ...; Default: session_log_format combined "..."; Context: http Specifies the output format of a log. The value of the $body_bytes_sent variable is aggregated across all requests in a session. The values of all other variables available for logging correspond to the first request in a session.

send_timeout

Syntax: send_timeout time; Default: send_timeout 60s; Context: http, server, location Sets a timeout for transmitting a response to the client. The timeout is set only between two successive write operations, not for the transmission of the whole response. If the client does not receive anything within this time, the connection is closed.

uwsgi_ssl_crl

Syntax: uwsgi_ssl_crl file; Default: — Context: http, server, location This directive appeared in version 1.7.0. Specifies a file with revoked certificates (CRL) in the PEM format used to verify the certificate of the secured uwsgi server.

geoip_org

Syntax: geoip_org file; Default: — Context: stream Specifies a database used to determine the organization depending on the client IP address. The following variable is available when using this database: $geoip_org organization name, for example, “The University of Melbourne”.

uwsgi_ssl_name

Syntax: uwsgi_ssl_name name; Default: uwsgi_ssl_name host from uwsgi_pass; Context: http, server, location This directive appeared in version 1.7.0. Allows overriding the server name used to verify the certificate of the secured uwsgi server and to be passed through SNI when establishing a connection with the secured uwsgi server. By default, the host part from uwsgi_pass is used.