Mastering Nginx

(Ron) #1

Directive Reference


[ 218 ]

Directive Explanation Context/Default
auth_http_timeout The maximum amount of
time NGINX will wait when
communicating with an
authentication server.

Valid contexts: mail,
server
Default value: 60s

autoindex Activates the automatic generation
of a directory listing page.

Valid contexts: http,
server, location
Default value: off
autoindex_exact_
size

Indicates whether the file sizes
in a directory listing page should
be listed in bytes or rounded
to kilobytes, megabytes, and
gigabytes.

Valid contexts: http,
server, location.
Default value: on

autoindex_localtime Sets the file modification time in
a directory listing page to either
local time (on) or UTC (off).

Valid contexts: http,
server, location
Default value: off
break Ends the processing of the
rewrite module directives found
within the same context.

Valid contexts:
server, location,
if
Default value: -
charset Adds the character set specified
to the Content-Type response
header. If this is different than the
source_charset directive, a
conversion is performed.

Valid contexts: http,
server, location,
if in location
Default value: off

charset_map Sets up a conversion table from
one character set to another.
Each character code is specified
in hexadecimal. The files conf/
koi-win, conf/koi-utf, and
conf/win-utf include mappings
from koi8-r to windows-1251,
from koi8-r to utf-8, and
from windows-1251 to utf-8,
respectively.

Valid context: http
Default value: -
Free download pdf