Mercurial > hg > nginx-site
comparison xml/ru/docs/http/ngx_http_gzip_static_module.xml @ 76:4a4caa566120
Russian documentation import.
Changes in module.dtd: <example> now allowed to contain <value> and
<emphasis> elements (we need this to show important parts in examples),
less strict checking of <directive> syntax (we don't want to fully
document some directives, notably deprecated ones).
Known issues:
1. <syntax> elements are preserved as is, they will require manual conversion
(likely to some not-yet-existed format a la DocBook cmdsynopsis, as
currently used one seems to be incomplete);
2. <value> no longer corresponds to replaceable content, and it's use in
examples isn't correct;
3. <link doc="document#fragment"> doesn't work with current xslt, either
should be supported or changed to <link doc="document" id="fragment">.
The following files are intentionally omitted: maillists.xml (support.xml
should be used instead), experimental.xml (obsolete), faq.xml (conflicts
with existing one, needs discussion).
Not yet linked to site.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 11 Oct 2011 12:57:50 +0000 |
parents | |
children | 0a45870d0160 |
comparison
equal
deleted
inserted
replaced
75:2bf4cd2787c5 | 76:4a4caa566120 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 | |
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | |
4 | |
5 <module name="Директивы модуля ngx_http_gzip_static_module" | |
6 link="/ru/docs/http/ngx_http_gzip_static_module.html" | |
7 lang="ru"> | |
8 | |
9 <section name="" id="summary"> | |
10 | |
11 <para> | |
12 Модуль ngx_http_gzip_static_module позволяет отдавать | |
13 вместо обычного файла предварительно сжатый файл с таким же именем | |
14 и с суффиксом ".gz". | |
15 </para> | |
16 | |
17 <para> | |
18 По умолчанию модуль не собирается, нужно разрешить его сборку при | |
19 конфигурировании параметром <command>--with-http_gzip_static_module</command>. | |
20 </para> | |
21 | |
22 </section> | |
23 | |
24 | |
25 <section name="Пример конфигурации" id="example"> | |
26 | |
27 <para> | |
28 <example> | |
29 gzip_static on; | |
30 gzip_proxied expired no-cache no-store private auth; | |
31 </example> | |
32 </para> | |
33 | |
34 </section> | |
35 | |
36 | |
37 <section name="Директивы" id="directives"> | |
38 | |
39 <directive name="gzip_static"> | |
40 <syntax>gzip_static <value>on|off</value></syntax> | |
41 <default>gzip_static off</default> | |
42 <context>http, server, location</context> | |
43 | |
44 <para> | |
45 Разрешает или запрещает проверку готового сжатого файла. | |
46 При использовании также учитываются директивы | |
47 <link doc="ngx_http_gzip_module.xml#gzip_http_version">gzip_http_version</link>, | |
48 <link doc="ngx_http_gzip_module.xml#gzip_proxied">gzip_proxied</link>, | |
49 <link doc="ngx_http_gzip_module.xml#gzip_disable">gzip_disable</link> | |
50 и <link doc="ngx_http_gzip_module.xml#gzip_vary">gzip_vary</link>. | |
51 </para> | |
52 | |
53 <para> | |
54 Сжимать файлы можно с помощью программы gzip или совместимой с ней. | |
55 Желательно, чтобы время модификации исходного и сжатого файлов совпадали. | |
56 </para> | |
57 | |
58 </directive> | |
59 | |
60 </section> | |
61 | |
62 </module> |