Path: blob/main/xml/en/docs/http/ngx_http_gunzip_module.xml
1 views
<?xml version="1.0"?>12<!--3Copyright (C) Maxim Dounin4Copyright (C) Nginx, Inc.5-->67<!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">89<module name="Module ngx_http_gunzip_module"10link="/en/docs/http/ngx_http_gunzip_module.html"11lang="en"12rev="2">1314<section id="summary">1516<para>17The <literal>ngx_http_gunzip_module</literal> module is a filter that18decompresses responses with “<literal>Content-Encoding: gzip</literal>”19for clients that do not support “gzip” encoding method.20The module will be useful when it is desirable to store21data compressed to save space and reduce I/O costs.22</para>2324<para>25This module is not built by default, it should be enabled with the26<literal>--with-http_gunzip_module</literal>27configuration parameter.28</para>2930</section>313233<section id="example" name="Example Configuration">3435<para>36<example>37location /storage/ {38gunzip on;39...40}41</example>42</para>4344</section>454647<section id="directives" name="Directives">4849<directive name="gunzip">50<syntax><literal>on</literal> | <literal>off</literal></syntax>51<default>off</default>52<context>http</context>53<context>server</context>54<context>location</context>5556<para>57Enables or disables decompression of gzipped responses58for clients that lack gzip support.59If enabled, the following directives are also taken into account60when determining if clients support gzip:61<link doc="ngx_http_gzip_module.xml" id="gzip_http_version"/>,62<link doc="ngx_http_gzip_module.xml" id="gzip_proxied"/>, and63<link doc="ngx_http_gzip_module.xml" id="gzip_disable"/>.64See also the <link doc="ngx_http_gzip_module.xml" id="gzip_vary"/> directive.65</para>6667</directive>686970<directive name="gunzip_buffers">71<syntax><value>number</value> <value>size</value></syntax>72<default>32 4k|16 8k</default>73<context>http</context>74<context>server</context>75<context>location</context>7677<para>78Sets the <value>number</value> and <value>size</value> of buffers79used to decompress a response.80By default, the buffer size is equal to one memory page.81This is either 4K or 8K, depending on a platform.82</para>8384</directive>8586</section>8788</module>899091