Mercurial > hg > nginx-site
annotate xml/ru/docs/http/ngx_http_gzip_module.xml @ 1523:3b4a86b3515e
Rephrased the "real_ip_header" directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 30 Jun 2015 19:20:27 +0300 |
parents | 6d51bb4f19f7 |
children | ce3e89d13fa0 |
rev | line source |
---|---|
222
bfe3eff81d04
Removed redundant encoding specification.
Ruslan Ermilov <ru@nginx.com>
parents:
110
diff
changeset
|
1 <?xml version="1.0"?> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
2 |
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
3 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
4 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
5 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
6 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
7 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
9 |
322 | 10 <module name="Модуль ngx_http_gzip_module" |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
11 link="/ru/docs/http/ngx_http_gzip_module.html" |
589 | 12 lang="ru" |
1248
6d51bb4f19f7
Gzip: fixed minor flaws in the "gzip_proxied" directive.
Gunnlaugur Thor Briem <gunnlaugur@gmail.com>
parents:
966
diff
changeset
|
13 rev="4"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
14 |
110
40eec261c2a6
Added proper support for anonymous sections, notably for the summary.
Ruslan Ermilov <ru@nginx.com>
parents:
106
diff
changeset
|
15 <section id="summary"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
16 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
17 <para> |
367
f4033b9bc4ec
- Removed unnecessary instances of unbreakable space.
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
18 Модуль <literal>ngx_http_gzip_module</literal> — это фильтр, |
322 | 19 сжимающий ответ методом gzip, |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
20 что позволяет уменьшить размер передаваемых данных в 2 и более раз. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
21 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
22 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
23 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
24 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
25 |
322 | 26 <section id="example" name="Пример конфигурации"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
27 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
28 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
29 <example> |
351
a4fa80755eab
Consistently strip initial offset in examples.
Ruslan Ermilov <ru@nginx.com>
parents:
326
diff
changeset
|
30 gzip on; |
a4fa80755eab
Consistently strip initial offset in examples.
Ruslan Ermilov <ru@nginx.com>
parents:
326
diff
changeset
|
31 gzip_min_length 1000; |
a4fa80755eab
Consistently strip initial offset in examples.
Ruslan Ermilov <ru@nginx.com>
parents:
326
diff
changeset
|
32 gzip_proxied expired no-cache no-store private auth; |
a4fa80755eab
Consistently strip initial offset in examples.
Ruslan Ermilov <ru@nginx.com>
parents:
326
diff
changeset
|
33 gzip_types text/plain application/xml; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
34 </example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
35 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
36 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
37 <para> |
825
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
38 Для записи в лог достигнутого коэффициента сжатия можно использовать переменную |
322 | 39 <var>$gzip_ratio</var>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
40 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
41 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
42 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
43 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
44 |
322 | 45 <section id="directives" name="Директивы"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
46 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
47 <directive name="gzip"> |
271 | 48 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
49 <default>off</default> |
322 | 50 <context>http</context> |
51 <context>server</context> | |
52 <context>location</context> | |
53 <context>if в location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
54 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
55 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
56 Разрешает или запрещает сжатие ответа методом gzip. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
57 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
58 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
59 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
60 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
61 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
62 <directive name="gzip_buffers"> |
271 | 63 <syntax><value>число</value> <value>размер</value></syntax> |
322 | 64 <default>32 4k|16 8k</default> |
65 <context>http</context> | |
66 <context>server</context> | |
67 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
68 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
69 <para> |
322 | 70 Задаёт <value>число</value> и <value>размер</value> буферов, |
71 в которые будет сжиматься ответ. | |
72 По умолчанию размер одного буфера равен размеру страницы. | |
73 В зависимости от платформы это или 4K, или 8K. | |
74 <note> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
75 До версии 0.7.28 по умолчанию использовалось 4 буфера размером 4K или 8K. |
322 | 76 </note> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
77 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
78 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
79 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
80 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
81 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
82 <directive name="gzip_comp_level"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
83 |
271 | 84 <syntax><value>степень</value></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
85 <default>1</default> |
322 | 86 <context>http</context> |
87 <context>server</context> | |
88 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
89 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
90 <para> |
271 | 91 Устанавливает <value>степень</value> сжатия ответа методом gzip. |
966 | 92 Допустимые значения находятся в диапазоне от 1 до 9. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
93 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
94 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
95 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
96 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
97 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
98 <directive name="gzip_disable"> |
271 | 99 <syntax><value>regex</value> ...</syntax> |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
79
diff
changeset
|
100 <default/> |
322 | 101 <context>http</context> |
102 <context>server</context> | |
103 <context>location</context> | |
104 <appeared-in>0.6.23</appeared-in> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
105 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
106 <para> |
322 | 107 Запрещает сжатие ответа методом gzip для запросов |
326 | 108 с полями заголовка <header>User-Agent</header>, |
322 | 109 совпадающими с заданными регулярными выражениями. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
110 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
111 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
112 <para> |
322 | 113 Специальная маска “<literal>msie6</literal>” (0.7.12) соответствует |
114 регулярному выражению “<literal>MSIE [4-6]\.</literal>”, но работает быстрее. | |
115 Начиная с версии 0.8.11, из этой маски исключается | |
116 “<literal>MSIE 6.0; ... SV1</literal>”. | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
117 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
118 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
119 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
120 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
121 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
122 <directive name="gzip_min_length"> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
123 <syntax><value>длина</value></syntax> |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
124 <default>20</default> |
322 | 125 <context>http</context> |
126 <context>server</context> | |
127 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
128 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
129 <para> |
322 | 130 Устанавливает минимальную длину ответа, который будет сжиматься методом gzip. |
326 | 131 Длина определяется только из поля <header>Content-Length</header> |
322 | 132 заголовка ответа. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
133 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
134 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
135 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
136 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
137 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
138 <directive name="gzip_http_version"> |
271 | 139 <syntax><literal>1.0</literal> | <literal>1.1</literal></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
140 <default>1.1</default> |
322 | 141 <context>http</context> |
142 <context>server</context> | |
143 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
144 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
145 <para> |
326 | 146 Устанавливает минимальную HTTP-версию запроса, необходимую для сжатия ответа. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
147 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
148 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
149 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
150 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
151 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
152 <directive name="gzip_proxied"> |
271 | 153 <syntax> |
364 | 154 <literal>off</literal> | |
155 <literal>expired</literal> | | |
156 <literal>no-cache</literal> | | |
157 <literal>no-store</literal> | | |
158 <literal>private</literal> | | |
159 <literal>no_last_modified</literal> | | |
160 <literal>no_etag</literal> | | |
161 <literal>auth</literal> | | |
162 <literal>any</literal> | |
163 ...</syntax> | |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
164 <default>off</default> |
322 | 165 <context>http</context> |
166 <context>server</context> | |
167 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
168 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
169 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
170 Разрешает или запрещает сжатие ответа методом gzip для проксированных |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
171 запросов в зависимости от запроса и ответа. |
326 | 172 То, что запрос проксированный, определяется на основании наличия поля |
173 <header>Via</header> в заголовке запроса. | |
285 | 174 В директиве можно указать одновременно несколько параметров: |
322 | 175 <list type="tag"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
176 |
322 | 177 <tag-name><literal>off</literal></tag-name> |
178 <tag-desc> | |
179 запрещает сжатие для всех проксированных запросов, | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
180 игнорируя остальные параметры; |
322 | 181 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
182 |
322 | 183 <tag-name><literal>expired</literal></tag-name> |
184 <tag-desc> | |
326 | 185 разрешает сжатие, если в заголовке ответа есть поле |
322 | 186 <header>Expires</header> со значением, запрещающим кэширование; |
187 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
188 |
322 | 189 <tag-name><literal>no-cache</literal></tag-name> |
190 <tag-desc> | |
326 | 191 разрешает сжатие, если в заголовке ответа есть поле |
322 | 192 <header>Cache-Control</header> с параметром “<literal>no-cache</literal>”; |
193 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
194 |
322 | 195 <tag-name><literal>no-store</literal></tag-name> |
196 <tag-desc> | |
326 | 197 разрешает сжатие, если в заголовке ответа есть поле |
322 | 198 <header>Cache-Control</header> с параметром “<literal>no-store</literal>”; |
199 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
200 |
322 | 201 <tag-name><literal>private</literal></tag-name> |
202 <tag-desc> | |
326 | 203 разрешает сжатие, если в заголовке ответа есть поле |
322 | 204 <header>Cache-Control</header> с параметром “<literal>private</literal>”; |
205 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
206 |
322 | 207 <tag-name><literal>no_last_modified</literal></tag-name> |
208 <tag-desc> | |
326 | 209 разрешает сжатие, если в заголовке ответа нет поля |
322 | 210 <header>Last-Modified</header>; |
211 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
212 |
322 | 213 <tag-name><literal>no_etag</literal></tag-name> |
214 <tag-desc> | |
326 | 215 разрешает сжатие, если в заголовке ответа нет поля |
322 | 216 <header>ETag</header>; |
217 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
218 |
322 | 219 <tag-name><literal>auth</literal></tag-name> |
220 <tag-desc> | |
326 | 221 разрешает сжатие, если в заголовке запроса есть поле |
322 | 222 <header>Authorization</header>; |
223 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
224 |
322 | 225 <tag-name><literal>any</literal></tag-name> |
226 <tag-desc> | |
326 | 227 разрешает сжатие для всех проксированных запросов. |
322 | 228 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
229 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
230 </list> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
231 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
232 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
233 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
234 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
235 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
236 <directive name="gzip_types"> |
271 | 237 <syntax><value>mime-тип</value> ...</syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
238 <default>text/html</default> |
322 | 239 <context>http</context> |
240 <context>server</context> | |
241 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
242 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
243 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
244 Разрешает сжатие ответа методом gzip для указанных MIME-типов в дополнение |
322 | 245 к “<literal>text/html</literal>”. |
546
694db9597ee0
Documented the special value "*" in various "*_type" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
367
diff
changeset
|
246 Специальное значение “<literal>*</literal>” соответствует любому MIME-типу |
694db9597ee0
Documented the special value "*" in various "*_type" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
367
diff
changeset
|
247 (0.8.29). |
322 | 248 Ответы с типом “<literal>text/html</literal>” сжимаются всегда. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
249 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
250 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
251 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
252 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
253 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
254 <directive name="gzip_vary"> |
271 | 255 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
256 <default>off</default> |
322 | 257 <context>http</context> |
258 <context>server</context> | |
259 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
260 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
261 <para> |
326 | 262 Разрешает или запрещает выдавать в ответе поле заголовка |
744
ac709e45740d
Revision of ngx_http_gunzip_module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
263 <header>Vary: Accept-Encoding</header>, если активны директивы |
ac709e45740d
Revision of ngx_http_gunzip_module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
264 <link id="gzip"/>, |
ac709e45740d
Revision of ngx_http_gunzip_module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
265 <link doc="ngx_http_gzip_static_module.xml" id="gzip_static"/> или |
ac709e45740d
Revision of ngx_http_gunzip_module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
266 <link doc="ngx_http_gunzip_module.xml" id="gunzip"/>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
267 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
268 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
269 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
270 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
271 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
272 |
825
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
273 |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
274 <section id="variables" name="Встроенные переменные"> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
275 |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
276 <para> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
277 <list type="tag"> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
278 |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
279 <tag-name id="var_gzip_ratio"><var>$gzip_ratio</var></tag-name> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
280 <tag-desc>достигнутый коэффициент сжатия — отношение размера исходного |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
281 ответа к размеру сжатого.</tag-desc> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
282 |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
283 </list> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
284 </para> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
285 |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
286 </section> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
287 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
288 </module> |