Mercurial > hg > nginx-site
view xml/ru/docs/http/ngx_http_gzip_static_module.xml @ 102:c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Specifying <default> is made non-optional.
Visible changes:
- "types" and "proxy_set_header" get proper defaults (not yet displayed
nicely);
- "fastcgi_hide_header", "fastcgi_ignore_headers", "fastcgi_pass_header",
"proxy_hide_header", "proxy_ignore_headers", and "proxy_pass_header"
now have their (empty) defaults documented;
- mentions of "fastcgi_redirect_errors" and "proxy_redirect_errors" which
are long unsupported were removed.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 19 Oct 2011 05:15:24 +0000 |
parents | 0a45870d0160 |
children | 56457a474903 |
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> <module name="Директивы модуля ngx_http_gzip_static_module" link="/ru/docs/http/ngx_http_gzip_static_module.html" lang="ru"> <section name="" id="summary"> <para> Модуль ngx_http_gzip_static_module позволяет отдавать вместо обычного файла предварительно сжатый файл с таким же именем и с суффиксом ".gz". </para> <para> По умолчанию модуль не собирается, нужно разрешить его сборку при конфигурировании параметром <command>--with-http_gzip_static_module</command>. </para> </section> <section name="Пример конфигурации" id="example"> <para> <example> gzip_static on; gzip_proxied expired no-cache no-store private auth; </example> </para> </section> <section name="Директивы" id="directives"> <directive name="gzip_static"> <syntax><value>on|off</value></syntax> <default>off</default> <context>http, server, location</context> <para> Разрешает или запрещает проверку готового сжатого файла. При использовании также учитываются директивы <link doc="ngx_http_gzip_module.xml" id="gzip_http_version">gzip_http_version</link>, <link doc="ngx_http_gzip_module.xml" id="gzip_proxied">gzip_proxied</link>, <link doc="ngx_http_gzip_module.xml" id="gzip_disable">gzip_disable</link> и <link doc="ngx_http_gzip_module.xml" id="gzip_vary">gzip_vary</link>. </para> <para> Сжимать файлы можно с помощью программы gzip или совместимой с ней. Желательно, чтобы время модификации исходного и сжатого файлов совпадали. </para> </directive> </section> </module>