Mercurial > hg > nginx-site
comparison xml/ru/docs/http/ngx_http_realip_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 | 1d315ef37215 |
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_realip_module" | |
6 link="/ru/docs/http/ngx_http_realip_module.html" | |
7 lang="ru"> | |
8 | |
9 <section name="" id="summary"> | |
10 | |
11 <para> | |
12 Модуль ngx_http_realip_module позволяет менять адрес клиента | |
13 на переданный в указанной строке заголовка. | |
14 По умолчанию модуль не собирается, нужно разрешить его сборку | |
15 при конфигурировании параметром <command>--with-http_realip_module</command>. | |
16 </para> | |
17 | |
18 </section> | |
19 | |
20 | |
21 <section name="Пример конфигурации" id="example"> | |
22 | |
23 <para> | |
24 <example> | |
25 set_real_ip_from 192.168.1.0/24; | |
26 set_real_ip_from 192.168.2.1; | |
27 real_ip_header X-Real-IP; | |
28 </example> | |
29 </para> | |
30 | |
31 </section> | |
32 | |
33 | |
34 <section name="Директивы" id="directives"> | |
35 | |
36 <directive name="set_real_ip_from"> | |
37 <syntax>set_real_ip_from <value>[адрес|CIDR]</value></syntax> | |
38 <default>нет</default> | |
39 <context>http, server, location</context> | |
40 | |
41 <para> | |
42 Директива описывает доверенные адреса, которые передают верный адрес | |
43 для замены. | |
44 </para> | |
45 | |
46 </directive> | |
47 | |
48 | |
49 <directive name="real_ip_header"> | |
50 <syntax>real_ip_header <value>имя строки[X-Real-IP|X-Forwarded-For]</value></syntax> | |
51 <default>real_ip_header X-Real-IP</default> | |
52 <context>http, server, location</context> | |
53 | |
54 <para> | |
55 Директива указывает название строки в заголовке запроса, | |
56 в котором передаётся адрес для замены. | |
57 В случае строки "X-Forwarded-For" используется последний адрес в значении | |
58 строки. Для остальных строк используется всё значение. | |
59 </para> | |
60 | |
61 </directive> | |
62 | |
63 </section> | |
64 | |
65 </module> |