Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_addition_module.xml @ 315:e00f8f8c0486
Translated ngx_http_access_module, ngx_http_addition_module,
ngx_http_auth_basic_module, ngx_http_autoindex_module, and
ngx_http_browser_module into English.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 13 Jan 2012 18:05:01 +0000 |
parents | |
children | a4fa80755eab |
comparison
equal
deleted
inserted
replaced
314:95d5dc7c9884 | 315:e00f8f8c0486 |
---|---|
1 <?xml version="1.0"?> | |
2 | |
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | |
4 | |
5 <module name="Module ngx_http_addition_module" | |
6 link="/en/docs/http/ngx_http_addition_module.html" | |
7 lang="en"> | |
8 | |
9 <section id="summary"> | |
10 | |
11 <para> | |
12 The <literal>ngx_http_addition_module</literal> module is a filter | |
13 that adds a text before and after a response. | |
14 This module is not built by default, it should be enabled with the | |
15 <literal>--with-http_addition_module</literal> | |
16 configuration parameter. | |
17 </para> | |
18 | |
19 </section> | |
20 | |
21 | |
22 <section id="example" name="Example Configuration"> | |
23 | |
24 <para> | |
25 <example> | |
26 location / { | |
27 add_before_body /before_action; | |
28 add_after_body /after_action; | |
29 } | |
30 </example> | |
31 </para> | |
32 | |
33 </section> | |
34 | |
35 | |
36 <section id="directives" name="Directives"> | |
37 | |
38 <directive name="add_before_body"> | |
39 <syntax><value>uri</value></syntax> | |
40 <default/> | |
41 <context>location</context> | |
42 | |
43 <para> | |
44 Adds a text returned as a result of processing a given subrequest, | |
45 before the response body. | |
46 </para> | |
47 | |
48 </directive> | |
49 | |
50 | |
51 <directive name="add_after_body"> | |
52 <syntax><value>uri</value></syntax> | |
53 <default/> | |
54 <context>location</context> | |
55 | |
56 <para> | |
57 Adds a text returned as a result of processing a given subrequest, | |
58 after the response body. | |
59 </para> | |
60 | |
61 </directive> | |
62 | |
63 | |
64 <directive name="addition_types"> | |
65 <syntax><value>mime-type</value> ...</syntax> | |
66 <default>text/html</default> | |
67 <context>http</context> | |
68 <context>server</context> | |
69 <context>location</context> | |
70 <appeared-in>0.7.9</appeared-in> | |
71 | |
72 <para> | |
73 Allows to add text in responses with the specified MIME types, | |
74 in addition to “<literal>text/html</literal>”. | |
75 </para> | |
76 | |
77 </directive> | |
78 | |
79 </section> | |
80 | |
81 </module> |