Mercurial > hg > nginx-site
comparison xml/ru/docs/http/ngx_http_addition_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 | a10bc0cb0a6a |
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_addition_module" | |
6 link="/ru/docs/http/ngx_http_addition_module.html" | |
7 lang="ru"> | |
8 | |
9 <section name="" id="summary"> | |
10 | |
11 <para> | |
12 Модуль ngx_http_addition_module — это фильтр, | |
13 добавляющий текст до и после ответа. | |
14 По умолчанию модуль не собирается, нужно разрешить его сборку | |
15 при конфигурировании параметром <command>--with-http_addition_module</command>. | |
16 </para> | |
17 | |
18 </section> | |
19 | |
20 | |
21 <section name="Пример конфигурации" id="example"> | |
22 | |
23 <para> | |
24 <example> | |
25 location / { | |
26 add_before_body /before_action; | |
27 add_after_body /after_action; | |
28 } | |
29 </example> | |
30 </para> | |
31 | |
32 </section> | |
33 | |
34 | |
35 <section name="Директивы" id="directives"> | |
36 | |
37 <directive name="add_before_body"> | |
38 <syntax>add_before_body <value>uri</value></syntax> | |
39 <default>нет</default> | |
40 <context>location</context> | |
41 | |
42 <para> | |
43 Директива добавляет перед телом ответа текст, выдаваемый в результате | |
44 работы заданного подзапроса. | |
45 </para> | |
46 | |
47 </directive> | |
48 | |
49 | |
50 <directive name="add_after_body"> | |
51 <syntax>add_after_body <value>uri</value></syntax> | |
52 <default>нет</default> | |
53 <context>location</context> | |
54 | |
55 <para> | |
56 Директива добавляет после тела ответа текст, выдаваемый в результате | |
57 работы заданного подзапроса. | |
58 </para> | |
59 | |
60 </directive> | |
61 | |
62 | |
63 <directive name="addition_types"> | |
64 <syntax>addition_types <value>mime-тип [mime-тип ...]</value></syntax> | |
65 <default>addition_types text/html</default> | |
66 <context>http, server, location</context> | |
67 | |
68 <para> | |
69 Директива (0.7.9) разрешает добавлять текст в ответах | |
70 с указанными MIME-типами в дополнение к "text/html". | |
71 </para> | |
72 | |
73 </directive> | |
74 | |
75 </section> | |
76 | |
77 </module> |