Mastering Nginx

(Ron) #1

Directive Reference


[ 230 ]

Directive Explanation Context/Default
geoip_proxy_
recursive

Works with geoip_proxy, to
specify that the last address in a
multivalued X-Forwarded-For
header will be used.

Valid context: http
Default value: off.

gunzip Enables the decompression of
gzipped files when the client
doesn't support gzip.

Valid contexts: http,
server, location
Default value: off
gunzip buffers Specifies the number and size of
buffers used for decompressing a
response.

Valid contexts: http,
server, location
Default value: 32
4k|16 8k (platform
dependent)
gzip Enables or disables the
compression of responses.

Valid contexts: http,
server, location,
if in location
Default value: off
gzip_buffers Specifies the number and size of
buffers used for compressing a
response.

Valid contexts: http,
server, location
Default value: 32
4k|16 8k (platform
dependent)
gzip_comp_level The gzip compression level (1-9). Valid contexts: http,
server, location
Default value: 1
gzip_disable A regular expression of User-
Agents that shouldn't receive a
compressed response. The special
value msie6 is a shortcut for MSIE
[4-6]\., excluding MSIE 6.0;
... SV1.

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

gzip_http_version The minimum HTTP version of
a request before compression is
considered.

Valid contexts: http,
server, location
Default value: 1.1
gzip_min_length The minimum length of a response
before compression is considered,
determined by the Content-
Length header.

Valid contexts: http,
server, location
Default value: 20
Free download pdf