Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nginx
GitHub Repository: nginx/nginx.org
Path: blob/main/xml/en/docs/http/ngx_http_gunzip_module.xml
1 views
1
<?xml version="1.0"?>
2
3
<!--
4
Copyright (C) Maxim Dounin
5
Copyright (C) Nginx, Inc.
6
-->
7
8
<!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9
10
<module name="Module ngx_http_gunzip_module"
11
link="/en/docs/http/ngx_http_gunzip_module.html"
12
lang="en"
13
rev="2">
14
15
<section id="summary">
16
17
<para>
18
The <literal>ngx_http_gunzip_module</literal> module is a filter that
19
decompresses responses with “<literal>Content-Encoding: gzip</literal>
20
for clients that do not support “gzip” encoding method.
21
The module will be useful when it is desirable to store
22
data compressed to save space and reduce I/O costs.
23
</para>
24
25
<para>
26
This module is not built by default, it should be enabled with the
27
<literal>--with-http_gunzip_module</literal>
28
configuration parameter.
29
</para>
30
31
</section>
32
33
34
<section id="example" name="Example Configuration">
35
36
<para>
37
<example>
38
location /storage/ {
39
gunzip on;
40
...
41
}
42
</example>
43
</para>
44
45
</section>
46
47
48
<section id="directives" name="Directives">
49
50
<directive name="gunzip">
51
<syntax><literal>on</literal> | <literal>off</literal></syntax>
52
<default>off</default>
53
<context>http</context>
54
<context>server</context>
55
<context>location</context>
56
57
<para>
58
Enables or disables decompression of gzipped responses
59
for clients that lack gzip support.
60
If enabled, the following directives are also taken into account
61
when determining if clients support gzip:
62
<link doc="ngx_http_gzip_module.xml" id="gzip_http_version"/>,
63
<link doc="ngx_http_gzip_module.xml" id="gzip_proxied"/>, and
64
<link doc="ngx_http_gzip_module.xml" id="gzip_disable"/>.
65
See also the <link doc="ngx_http_gzip_module.xml" id="gzip_vary"/> directive.
66
</para>
67
68
</directive>
69
70
71
<directive name="gunzip_buffers">
72
<syntax><value>number</value> <value>size</value></syntax>
73
<default>32 4k|16 8k</default>
74
<context>http</context>
75
<context>server</context>
76
<context>location</context>
77
78
<para>
79
Sets the <value>number</value> and <value>size</value> of buffers
80
used to decompress a response.
81
By default, the buffer size is equal to one memory page.
82
This is either 4K or 8K, depending on a platform.
83
</para>
84
85
</directive>
86
87
</section>
88
89
</module>
90
91