uwsgi_cache_bypass

Syntax: uwsgi_cache_bypass string ...; Default: — Context: http, server, location Defines conditions under which the response will not be taken from 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 taken from the cache: uwsgi_cache_bypass $cookie_nocache $arg_nocache$arg_comment; uwsgi_cache_bypass $http_pragma $http_authorization; Can be used along with the uwsgi_no_cache directive.

scgi_send_timeout

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

set_real_ip_from

Syntax: set_real_ip_from address | CIDR | unix:; Default: — Context: stream, server Defines trusted addresses that are known to send correct replacement addresses. If the special value unix: is specified, all UNIX-domain sockets will be trusted.

fastcgi_cache

Syntax: fastcgi_cache zone | off; Default: fastcgi_cache off; Context: http, server, location Defines a shared memory zone used for caching. The same zone can be used in several places. Parameter value can contain variables (1.7.9). The off parameter disables caching inherited from the previous configuration level.

default_type

Syntax: default_type mime-type; Default: default_type text/plain; Context: http, server, location Defines the default MIME type of a response. Mapping of file name extensions to MIME types can be set with the types directive.

fastcgi_buffer_size

Syntax: fastcgi_buffer_size size; Default: fastcgi_buffer_size 4k|8k; Context: http, server, location Sets the size of the buffer used for reading the first part of the response received from the FastCGI server. This part usually contains a small response header. By default, the buffer size is equal to one memory page. This is either 4K or 8K, depending on a platform. It can be made smaller, however.

uwsgi_intercept_errors

Syntax: uwsgi_intercept_errors on | off; Default: uwsgi_intercept_errors off; Context: http, server, location Determines whether a uwsgi server responses with codes greater than or equal to 300 should be passed to a client or be intercepted and redirected to nginx for processing with the error_page directive.

gzip_types

Syntax: gzip_types mime-type ...; Default: gzip_types text/html; Context: http, server, location Enables gzipping of responses for the specified MIME types in addition to “text/html”. The special value “*” matches any MIME type (0.8.29). Responses with the “text/html” type are always compressed.

mp4_buffer_size

Syntax: mp4_buffer_size size; Default: mp4_buffer_size 512K; Context: http, server, location Sets the initial size of the buffer used for processing MP4 files.

xslt_param

Syntax: xslt_param parameter value; Default: — Context: http, server, location This directive appeared in version 1.1.18. Defines the parameters for XSLT stylesheets. The value is treated as an XPath expression. The value can contain variables. To pass a string value to a stylesheet, the xslt_string_param directive can be used. There could be several xslt_param directives. These directives are inherited from the previous level if and only if there are no xslt_param and xslt_stri