etag

Syntax: etag on | off; Default: etag on; Context: http, server, location This directive appeared in version 1.3.3. Enables or disables automatic generation of the “ETag” response header field for static resources.

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

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

env

Syntax: env variable[=value]; Default: env TZ; Context: main By default, nginx removes all environment variables inherited from its parent process except the TZ variable. This directive allows preserving some of the inherited variables, changing their values, or creating new environment variables. These variables are then: inherited during a live upgrade of an executable file; used by the ngx_http_perl_module module; used by worker processes. One should bear in mind that cont

empty_gif

Syntax: empty_gif; Default: — Context: location Turns on module processing in a surrounding location.

disable_symlinks

Syntax: disable_symlinks off;disable_symlinks on | if_not_owner [from=part]; Default: disable_symlinks off; Context: http, server, location This directive appeared in version 1.1.15. Determines how symbolic links should be treated when opening files: off Symbolic links in the pathname are allowed and not checked. This is the default behavior. on If any component of the pathname is a symbolic link, access to a file is denied. if_not_owner Access to a file is deni

directio_alignment

Syntax: directio_alignment size; Default: directio_alignment 512; Context: http, server, location This directive appeared in version 0.8.11. Sets the alignment for directio. In most cases, a 512-byte alignment is enough. However, when using XFS under Linux, it needs to be increased to 4K.

directio

Syntax: directio size | off; Default: directio off; Context: http, server, location This directive appeared in version 0.7.7. Enables the use of the O_DIRECT flag (FreeBSD, Linux), the F_NOCACHE flag (Mac OS X), or the directio() function (Solaris), when reading files that are larger than or equal to the specified size. The directive automatically disables (0.7.15) the use of sendfile for a given request. It can be useful for serving large files: directio 4m; or when using aio

deny

Syntax: deny address | CIDR | unix: | all; Default: — Context: stream, server Denies access for the specified network or address. If the special value unix: is specified, denies access for all UNIX-domain sockets.

deny

Syntax: deny address | CIDR | unix: | all; Default: — Context: http, server, location, limit_except Denies access for the specified network or address. If the special value unix: is specified (1.5.1), denies access for all UNIX-domain sockets.