Mastering Nginx

(Ron) #1
Appendix A

[ 259 ]

Directive Explanation Context/Default


types_hash_max_size The maximum size of the types


hash tables.

Valid contexts: http,
server, location
Default value: 1024

underscoresin
headers


Enables the use of the underscore
character in client request headers.
If left at the default value off,
evaluation of such headers
is subject to the value of the
ignore_invalid_headers
directive.

Valid contexts: http,
server
Default value: off

uninitialized_
variable_warn


Controls whether or not warnings
about uninitialized variables are
logged.

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

upstream Sets up a named context in which


a group of servers is defined.

Valid context: http
Default value: -

use The use directive indicates
which connection processing
method should be used. This
will overwrite the compiled-in
default, and must be contained
in an events context, if used.
It is especially useful when the
compiled-in default is found to
produce errors over time.


Valid context: events
Default value: -

user The user and group under which
the worker processes will run is
configured using this parameter.
If the group is omitted, a group
name equal to that of the user
will be used.


Valid context: main
Default value: nobody
nobody
Free download pdf