fastcgi_index

Syntax: fastcgi_index name; Default: — Context: http, server, location Sets a file name that will be appended after a URI that ends with a slash, in the value of the $fastcgi_script_name variable. For example, with these settings fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /home/www/scripts/php$fastcgi_script_name; and the “/page.php” request, the SCRIPT_FILENAME parameter will be equal to “/home/www/scripts/php/page.php”, and with the “/” request it will be equal to

gzip_vary

Syntax: gzip_vary on | off; Default: gzip_vary off; Context: http, server, location Enables or disables inserting the “Vary: Accept-Encoding” response header field if the directives gzip, gzip_static, or gunzip are active.

memcached_bind

Syntax: memcached_bind address [ transparent ] | off; Default: — Context: http, server, location This directive appeared in version 0.8.22. Makes outgoing connections to a memcached server originate from the specified local IP address with an optional port (1.11.2). Parameter value can contain variables (1.3.12). The special value off (1.3.12) cancels the effect of the memcached_bind directive inherited from the previous configuration level, which allows the system to

uwsgi_buffers

Syntax: uwsgi_buffers number size; Default: uwsgi_buffers 8 4k|8k; Context: http, server, location Sets the number and size of the buffers used for reading a response from the uwsgi server, for a single connection. By default, the buffer size is equal to one memory page. This is either 4K or 8K, depending on a platform.

error_page

Syntax: error_page code ... [=[response]] uri; Default: — Context: http, server, location, if in location Defines the URI that will be shown for the specified errors. A uri value can contain variables. Example: error_page 404 /404.html; error_page 500 502 503 504 /50x.html; This causes an internal redirect to the specified uri with the client request method changed to “GET” (for all methods other than “GET” and “HEAD”). Furthermore, it is possible t

proxy_ssl_ciphers

Syntax: proxy_ssl_ciphers ciphers; Default: proxy_ssl_ciphers DEFAULT; Context: http, server, location This directive appeared in version 1.5.6. Specifies the enabled ciphers for requests to a proxied HTTPS server. The ciphers are specified in the format understood by the OpenSSL library. The full list can be viewed using the “openssl ciphers” command.

http2_body_preread_size

Syntax: http2_body_preread_size size; Default: http2_body_preread_size 64k; Context: http, server This directive appeared in version 1.11.0. Sets the size of the buffer per each request in which the request body may be saved before it is started to be processed.

error_log

Syntax: error_log file [level]; Default: error_log logs/error.log error; Context: main, http, mail, stream, server, location Configures logging. Several logs can be specified on the same level (1.5.2). If on the main configuration level writing a log to a file is not explicitly defined, the default file will be used. The first parameter defines a file that will store the log. The special value stderr selects the standard error file. Logging to syslog can be configured by specifyi

lingering_time

Syntax: lingering_time time; Default: lingering_time 30s; Context: http, server, location When lingering_close is in effect, this directive specifies the maximum time during which nginx will process (read and ignore) additional data coming from a client. After that, the connection will be closed, even if there will be more data.

lingering_close

Syntax: lingering_close off | on | always; Default: lingering_close on; Context: http, server, location This directive appeared in versions 1.1.0 and 1.0.6. Controls how nginx closes client connections. The default value “on” instructs nginx to wait for and process additional data from a client before fully closing a connection, but only if heuristics suggests that a client may be sending more data. The value “always” will cause nginx to unconditionally wait for