Appendix A
[ 221 ]
Directive Explanation Context/Default
debug_connection Enables debug logging for any
client matching the value of this
directive. It may be specified
multiple times. To debug UNIX-
domain sockets, use unix:.
Valid contexts: events
Default value: -
debug_points When debugging, the process will
either create a core file (abort)
or stop (stop) so that a system
debugger may be attached.
Valid context: main
Default value: -
default_type Sets the default MIME type of a
response. This comes into play if
the MIME type of the file cannot
be matched to one of those
specified by the types directive.
Valid contexts: http,
server, location
Default value: text/
plain
deny Denies access from this IP address,
network, or all.
Valid contexts: http,
server, location,
limit_except
Default value: -
directio Enables the operating system-
specific flag or function for serving
files larger than the parameter
given. Required when using aio
on Linux.
Valid contexts: http,
server, location
Default value: off
directio_alignment Sets the alignment for
directio. The default of 512
is usually enough, although it's
recommended to increase this to
4K when using XFS on Linux.
Valid contexts: http,
server, location
Default value: 512
disable_symlinks Refer to the HTTP file path
directives table in the Finding files
section in Chapter 6, The NGINX
HTTP Server.
Valid contexts: http,
server, location
Default value: off
empty_gif Causes a 1x1 pixel transparent GIF
to be emitted for that location.
Valid context:
location
Default value: -