Mastering Nginx

(Ron) #1
Appendix A

[ 251 ]

Directive Explanation Context/Default


satisfy_any This is deprecated. Use the


any parameter of the satisfy
directive.

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

secure_link_secret A salt used to compute the MD5
hash of a URI.


Valid context:
location
Default value: -

send_lowat If non-zero, NGINX will try to
minimize the number of send
operations on client sockets.
Ignored in Linux, Solaris, and
Windows.


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

send_timeout This directive sets a timeout
between two successive write
operations for a client receiving a
response.


Valid contexts: http,
server, location
Default value: 60s

sendfile Enable using sendfile(2) to


directly copy data from one file
descriptor to another.

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

sendfile_max_chunk Sets the maximum size of data to
copy in one sendfile(2) call to
prevent a worker from seizing.


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

server (http) Creates a new configuration
context, defining a virtual host.
The listen directive specifies
the IP address(es) and port(s);
the server_name directive lists
the Host header values that this
context matches.


Valid context: http
Default value: -

server (upstream) Refer to the Upstream modules
directives table in the The upstream
module section in Chapter 4, NGINX
as a Reverse Proxy.


Valid context:
upstream
Default value: -

server (mail) Creates a new configuration
context, defining a mail server.
The listen directive specifies
the IP address(es) and port(s); the
server_name directive sets the
name of the server.


Valid context: mail
Default value: -
Free download pdf