Mastering Nginx

(Ron) #1
Appendix A

[ 231 ]

Directive Explanation Context/Default


gzip_proxied Refer to the Gzip module directives


table in the Compressing section in
Chapter 5, Reverse Proxy Advanced
Topics.

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

gzip_static Enables checking for
precompressed files, to be
delivered directly to clients which
support gzip compression.


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

gzip_types The MIME types that should be
compressed with gzip, in addition
to the default text/html. It may
be * to enable all MIME types.


Valid contexts: http,
server, location
Default value: text/
html

gzipvary Enables or disables the response
header Vary: Accept-
Encoding if gzip or gzip

static is active.


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

http Sets up a configuration context in


which HTTP server directives are
specified.

Valid context: main
Default value: -

if Refer to the Rewrite module
directives table in the Introducing
the rewrite module section in
Appendix B, Rewrite Rule Guide.


Valid contexts:
server, location
Default value: -

if_modified_since Controls how the modification
time of a response is compared to
the value of the If-Modified-
Since request header:



  • off: The If-Modified-
    Since header is ignored

  • exact: An exact match is
    made (default)

  • before: The modification
    time of the response is less
    than or equal to the value of
    the If-Modified-Since
    header


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