Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_gzip_static_module.xml @ 330:f94bcab2a6ae
Translated ngx_http_gzip_module and ngx_http_gzip_static_module.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 19 Jan 2012 08:50:12 +0000 |
parents | |
children | a4fa80755eab |
comparison
equal
deleted
inserted
replaced
329:7571ab5b376e | 330:f94bcab2a6ae |
---|---|
1 <?xml version="1.0"?> | |
2 | |
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | |
4 | |
5 <module name="Module ngx_http_gzip_static_module" | |
6 link="/en/docs/http/ngx_http_gzip_static_module.html" | |
7 lang="en"> | |
8 | |
9 <section id="summary"> | |
10 | |
11 <para> | |
12 The <literal>ngx_http_gzip_static_module</literal> module allows | |
13 to send precompressed files with the “<literal>.gz</literal>” | |
14 filename extension instead of regular files. | |
15 </para> | |
16 | |
17 <para> | |
18 This module is not built by default, it should be enabled with the | |
19 <literal>--with-http_gzip_static_module</literal> | |
20 configuration parameter. | |
21 </para> | |
22 | |
23 </section> | |
24 | |
25 | |
26 <section id="example" name="Example Configuration"> | |
27 | |
28 <para> | |
29 <example> | |
30 gzip_static on; | |
31 gzip_proxied expired no-cache no-store private auth; | |
32 </example> | |
33 </para> | |
34 | |
35 </section> | |
36 | |
37 | |
38 <section id="directives" name="Directives"> | |
39 | |
40 <directive name="gzip_static"> | |
41 <syntax><literal>on</literal> | <literal>off</literal></syntax> | |
42 <default>off</default> | |
43 <context>http</context> | |
44 <context>server</context> | |
45 <context>location</context> | |
46 | |
47 <para> | |
48 Enables or disables checking the existence of precompressed files. | |
49 The following directives are also taken into account: | |
50 <link doc="ngx_http_gzip_module.xml" id="gzip_http_version"/>, | |
51 <link doc="ngx_http_gzip_module.xml" id="gzip_proxied"/>, | |
52 <link doc="ngx_http_gzip_module.xml" id="gzip_disable"/>, | |
53 and <link doc="ngx_http_gzip_module.xml" id="gzip_vary"/>. | |
54 </para> | |
55 | |
56 <para> | |
57 The files can be compressed using the <command>gzip</command> command, | |
58 or any other compatible. | |
59 It is recommended that the modification date and time of original and | |
60 compressed files be the same. | |
61 </para> | |
62 | |
63 </directive> | |
64 | |
65 </section> | |
66 | |
67 </module> |