Mercurial > hg > nginx-site
annotate xml/ru/docs/stream/ngx_stream_core_module.xml @ 1950:ef22a80a2696
Described the "checking" state in "health_check mandatory"
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 30 Mar 2017 21:26:44 +0300 |
parents | f024ac0ec5c7 |
children | 351cefd5ff9c |
rev | line source |
---|---|
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
2 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
3 <!-- |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
4 Copyright (C) Nginx, Inc. |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
5 --> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
9 <module name="Модуль ngx_stream_core_module" |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
10 link="/ru/docs/stream/ngx_stream_core_module.html" |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
11 lang="ru" |
1911
f024ac0ec5c7
Apple rebranded Mac OS X to macOS.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1816
diff
changeset
|
12 rev="22"> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
13 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
14 <section id="summary"> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
17 Модуль <literal>ngx_stream_core_module</literal> |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
18 доступен начиная с версии 1.9.0. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
19 По умолчанию этот модуль не собирается, его сборку необходимо |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
20 разрешить с помощью конфигурационного параметра |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
21 <literal>--with-stream</literal>. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
22 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
23 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 </section> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 |
1394
66f227952864
Somewhat revamped the stream module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
1367
diff
changeset
|
26 |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
27 <section id="example" name="Пример конфигурации"> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
28 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
29 <para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 <example> |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
31 worker_processes auto; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
32 |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
33 error_log /var/log/nginx/error.log info; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
34 |
1528
3ae5301ea37a
Added the "events" section to examples of stream and mail.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1507
diff
changeset
|
35 events { |
3ae5301ea37a
Added the "events" section to examples of stream and mail.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1507
diff
changeset
|
36 worker_connections 1024; |
3ae5301ea37a
Added the "events" section to examples of stream and mail.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1507
diff
changeset
|
37 } |
3ae5301ea37a
Added the "events" section to examples of stream and mail.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1507
diff
changeset
|
38 |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
39 stream { |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
40 upstream backend { |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
41 hash $remote_addr consistent; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
42 |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
43 server backend1.example.com:12345 weight=5; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
44 server 127.0.0.1:12345 max_fails=3 fail_timeout=30s; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
45 server unix:/tmp/backend3; |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
46 } |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
47 |
1662
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
48 upstream dns { |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
49 server 192.168.0.1:53535; |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
50 server dns.example.com:53; |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
51 } |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
52 |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
53 server { |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
54 listen 12345; |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
55 proxy_connect_timeout 1s; |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
56 proxy_timeout 3s; |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
57 proxy_pass backend; |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
58 } |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
59 |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
60 server { |
1662
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
61 listen 127.0.0.1:53 udp; |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
62 proxy_responses 1; |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
63 proxy_timeout 20s; |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
64 proxy_pass dns; |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
65 } |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
66 |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
67 server { |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
68 listen [::1]:12345; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
69 proxy_pass unix:/tmp/stream.socket; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
70 } |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
71 } |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
72 </example> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
73 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
74 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
75 </section> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
76 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
77 |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
78 <section id="directives" name="Директивы"> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
79 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
80 <directive name="listen"> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
81 <syntax> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
82 <value>адрес</value>:<value>порт</value> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
83 [<literal>ssl</literal>] |
1662
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
84 [<literal>udp</literal>] |
1778
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
85 [<literal>proxy_protocol</literal>] |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
86 [<literal>backlog</literal>=<value>число</value>] |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
87 [<literal>bind</literal>] |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
88 [<literal>ipv6only</literal>=<literal>on</literal>|<literal>off</literal>] |
1493
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
89 [<literal>reuseport</literal>] |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
90 [<literal>so_keepalive</literal>=<literal>on</literal>|<literal>off</literal>|[<value>keepidle</value>]:[<value>keepintvl</value>]:[<value>keepcnt</value>]]</syntax> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
91 <default/> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
92 <context>server</context> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
93 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
94 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
95 Задаёт <value>адрес</value> и <value>порт</value> для сокета, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
96 на котором сервер будет принимать соединения. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
97 Можно указать только порт. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
98 Кроме того, адрес может быть именем хоста, например: |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
99 <example> |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
100 listen 127.0.0.1:12345; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
101 listen *:12345; |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
102 listen 12345; # то же, что и *:12345 |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
103 listen localhost:12345; |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
104 </example> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
105 IPv6-адреса задаются в квадратных скобках: |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
106 <example> |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
107 listen [::1]:12345; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
108 listen [::]:12345; |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
109 </example> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
110 UNIX-сокеты задаются префиксом “<literal>unix:</literal>” |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
111 <example> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
112 listen unix:/var/run/nginx.sock; |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
113 </example> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
114 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
115 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
116 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
117 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
118 Параметр <literal>ssl</literal> указывает на то, что все соединения, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
119 принимаемые на данном порту, должны работать в режиме SSL. |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
120 </para> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
121 |
1686
93063516f6ff
Provided the anchor link for the "listen udp" parameter.
Ruslan Ermilov <ru@nginx.com>
parents:
1662
diff
changeset
|
122 <para id="udp"> |
1662
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
123 Параметр <literal>udp</literal> конфигурирует слушающий сокет |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
124 для работы с датаграммами (1.9.13). |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
125 </para> |
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
126 |
1778
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
127 <para id="proxy_protocol"> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
128 Параметр <literal>proxy_protocol</literal> (1.11.4) |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
129 указывает на то, что все соединения, принимаемые на данном порту, |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
130 должны использовать |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
131 <link url="http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt">протокол |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
132 PROXY</link>. |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
133 </para> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
134 |
1662
48615cf80e20
Documented the UDP proxy functionality.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1546
diff
changeset
|
135 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
136 В директиве <literal>listen</literal> можно также указать несколько |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
137 дополнительных параметров, специфичных для связанных с сокетами |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
138 системных вызовов. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
139 <list type="tag"> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
140 |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
141 <tag-name> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
142 <literal>backlog</literal>=<value>число</value> |
1502
b628e042a15e
Documented "listen backlog=" in mail and stream.
Ruslan Ermilov <ru@nginx.com>
parents:
1500
diff
changeset
|
143 </tag-name> |
b628e042a15e
Documented "listen backlog=" in mail and stream.
Ruslan Ermilov <ru@nginx.com>
parents:
1500
diff
changeset
|
144 <tag-desc> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
145 задаёт параметр <literal>backlog</literal> в вызове |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
146 <c-func>listen</c-func>, который ограничивает |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
147 максимальный размер очереди ожидающих приёма соединений (1.9.2). |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
148 По умолчанию <literal>backlog</literal> устанавливается равным -1 для |
1911
f024ac0ec5c7
Apple rebranded Mac OS X to macOS.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1816
diff
changeset
|
149 FreeBSD, DragonFly BSD и macOS, |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
150 и 511 для других платформ. |
1502
b628e042a15e
Documented "listen backlog=" in mail and stream.
Ruslan Ermilov <ru@nginx.com>
parents:
1500
diff
changeset
|
151 </tag-desc> |
b628e042a15e
Documented "listen backlog=" in mail and stream.
Ruslan Ermilov <ru@nginx.com>
parents:
1500
diff
changeset
|
152 |
b628e042a15e
Documented "listen backlog=" in mail and stream.
Ruslan Ermilov <ru@nginx.com>
parents:
1500
diff
changeset
|
153 <tag-name> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
154 <literal>bind</literal> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
155 </tag-name> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
156 <tag-desc> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
157 параметр указывает, что для данной пары |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
158 <value>адрес</value>:<value>порт</value> нужно делать |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
159 <c-func>bind</c-func> отдельно. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
160 Это нужно потому, что если описаны несколько директив <literal>listen</literal> |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
161 с одинаковым портом, но разными адресами, и одна из директив |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
162 <literal>listen</literal> слушает на всех адресах для данного порта |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
163 (<literal>*:</literal><value>порт</value>), то nginx сделает |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
164 <c-func>bind</c-func> только на <literal>*:</literal><value>порт</value>. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
165 Необходимо заметить, что в этом случае для определения адреса, на которой |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
166 пришло соединение, делается системный вызов <c-func>getsockname</c-func>. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
167 Если же используются параметры <literal>ipv6only</literal> |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
168 или <literal>so_keepalive</literal>, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
169 то для данной пары |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
170 <value>адрес</value>:<value>порт</value> всегда делается |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
171 отдельный вызов <c-func>bind</c-func>. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
172 </tag-desc> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
173 |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
174 <tag-name> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
175 <literal>ipv6only</literal>=<literal>on</literal>|<literal>off</literal> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
176 </tag-name> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
177 <tag-desc> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
178 этот параметр определяет |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
179 (через параметр сокета <c-def>IPV6_V6ONLY</c-def>), |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
180 будет ли слушающий на wildcard-адресе <literal>[::]</literal> IPv6-сокет |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
181 принимать только IPv6-соединения, или же одновременно IPv6- и IPv4-соединения. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
182 По умолчанию параметр включён. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
183 Установить его можно только один раз на старте. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
184 </tag-desc> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
185 |
1507
14180fa9a518
Added ids for reuseport, mentioned reuseport in news.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1502
diff
changeset
|
186 <tag-name id="reuseport"> |
1493
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
187 <literal>reuseport</literal> |
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
188 </tag-name> |
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
189 <tag-desc> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
190 этот параметр (1.9.1) указывает, что нужно создавать отдельный слушающий сокет |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
191 для каждого рабочего процесса |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
192 (через параметр сокета <c-def>SO_REUSEPORT</c-def>), позволяя ядру |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
193 распределять входящие соединения между рабочими процессами. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
194 В настоящий момент это работает только на Linux 3.9+ и DragonFly BSD. |
1493
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
195 <note> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
196 Ненадлежащее использование параметра может иметь |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
197 <link url="http://man7.org/linux/man-pages/man7/socket.7.html">последствия</link> |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
198 в плане безопасности. |
1493
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
199 </note> |
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
200 </tag-desc> |
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
201 |
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
202 <tag-name> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
203 <literal>so_keepalive</literal>=<literal>on</literal>|<literal>off</literal>|[<value>keepidle</value>]:[<value>keepintvl</value>]:[<value>keepcnt</value>] |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
204 </tag-name> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
205 <tag-desc> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
206 этот параметр конфигурирует для слушающего сокета |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
207 поведение “TCP keepalive”. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
208 Если этот параметр опущен, то для сокета будут действовать |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
209 настройки операционной системы. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
210 Если он установлен в значение “<literal>on</literal>”, то для сокета |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
211 включается параметр <c-def>SO_KEEPALIVE</c-def>. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
212 Если он установлен в значение “<literal>off</literal>”, то для сокета |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
213 параметр <c-def>SO_KEEPALIVE</c-def> выключается. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
214 Некоторые операционные системы поддерживают настройку параметров |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
215 “TCP keepalive” на уровне сокета посредством параметров |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
216 <c-def>TCP_KEEPIDLE</c-def>, <c-def>TCP_KEEPINTVL</c-def> и |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
217 <c-def>TCP_KEEPCNT</c-def>. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
218 На таких системах (в настоящий момент это Linux 2.4+, NetBSD 5+ и |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
219 FreeBSD 9.0-STABLE) |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
220 их можно сконфигурировать с помощью параметров <value>keepidle</value>, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
221 <value>keepintvl</value> и <value>keepcnt</value>. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
222 Один или два параметра могут быть опущены, в таком случае для |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
223 соответствующего параметра сокета будут действовать стандартные |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
224 системные настройки. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
225 Например, |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
226 <example>so_keepalive=30m::10</example> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
227 установит таймаут бездействия (<c-def>TCP_KEEPIDLE</c-def>) в 30 минут, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
228 для интервала проб (<c-def>TCP_KEEPINTVL</c-def>) будет действовать |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
229 стандартная системная настройка, а счётчик проб (<c-def>TCP_KEEPCNT</c-def>) |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
230 будет равен 10. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
231 </tag-desc> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
232 |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
233 </list> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
234 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
235 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
236 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
237 Разные серверы должны слушать на разных парах |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
238 <value>адрес</value>:<value>порт</value>. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
239 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
240 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
241 </directive> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
242 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
243 |
1798
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
244 <directive name="preread_buffer_size"> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
245 <syntax><value>размер</value></syntax> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
246 <default>16k</default> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
247 <context>stream</context> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
248 <context>server</context> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
249 <appeared-in>1.11.5</appeared-in> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
250 |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
251 <para> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
252 Задаёт <value>размер</value> буфера |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
253 <link doc="stream_processing.xml" id="preread_phase">предварительного чтения</link>. |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
254 </para> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
255 |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
256 </directive> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
257 |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
258 |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
259 <directive name="preread_timeout"> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
260 <syntax><value>время</value></syntax> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
261 <default>30s</default> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
262 <context>stream</context> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
263 <context>server</context> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
264 <appeared-in>1.11.5</appeared-in> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
265 |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
266 <para> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
267 Задаёт <value>время</value> фазы |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
268 <link doc="stream_processing.xml" id="preread_phase">предварительного чтения</link>. |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
269 </para> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
270 |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
271 </directive> |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
272 |
59d1f512c3a0
Documented the ngx_stream_ssl_preread_module module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1782
diff
changeset
|
273 |
1782
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
274 <directive name="proxy_protocol_timeout"> |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
275 <syntax><value>время</value></syntax> |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
276 <default>30s</default> |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
277 <context>stream</context> |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
278 <context>server</context> |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
279 <appeared-in>1.11.4</appeared-in> |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
280 |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
281 <para> |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
282 Задаёт <value>время</value> для |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
283 завершения операции чтения заголовка протокола PROXY. |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
284 Если по истечении этого времени заголовок полностью не получен, |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
285 соединение закрывается. |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
286 </para> |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
287 |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
288 </directive> |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
289 |
363249d888e1
Documented the "proxy_protocol_timeout" directive in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1780
diff
changeset
|
290 |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
291 <directive name="resolver"> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
292 <syntax> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
293 <value>адрес</value> ... |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
294 [<literal>valid</literal>=<value>время</value>] |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
295 [<literal>ipv6</literal>=<literal>on</literal>|<literal>off</literal>]</syntax> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
296 <default/> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
297 <context>stream</context> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
298 <context>server</context> |
1753
256774f145ac
Documented stream resolver and resolver_timeout for opensource.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1742
diff
changeset
|
299 <appeared-in>1.11.3</appeared-in> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
300 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
301 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
302 Задаёт серверы DNS, используемые для преобразования имён вышестоящих серверов |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
303 в адреса, например: |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
304 <example> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
305 resolver 127.0.0.1 [::1]:5353; |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
306 </example> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
307 Адрес может быть указан в виде доменного имени или IP-адреса, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
308 и необязательного порта. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
309 Если порт не указан, используется порт 53. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
310 Серверы DNS опрашиваются циклически. |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
311 </para> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
312 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
313 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
314 По умолчанию nginx будет искать как IPv4-, так и IPv6-адреса |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
315 при преобразовании имён в адреса. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
316 Если поиск IPv6-адресов нежелателен, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
317 можно указать параметр <literal>ipv6=off</literal>. |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
318 </para> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
319 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
320 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
321 По умолчанию nginx кэширует ответы, используя значение TTL из ответа. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
322 Необязательный параметр <literal>valid</literal> позволяет это |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
323 переопределить: |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
324 <example> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
325 resolver 127.0.0.1 [::1]:5353 valid=30s; |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
326 </example> |
1462
e69e4dbcc760
Documented OSS stream modules.
Vladimir Homutov <vl@nginx.com>
parents:
1450
diff
changeset
|
327 <note> |
1753
256774f145ac
Documented stream resolver and resolver_timeout for opensource.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1742
diff
changeset
|
328 До версии 1.11.3 эта директива была доступна как часть |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
329 <commercial_version>коммерческой подписки</commercial_version>. |
1462
e69e4dbcc760
Documented OSS stream modules.
Vladimir Homutov <vl@nginx.com>
parents:
1450
diff
changeset
|
330 </note> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
331 </para> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
332 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
333 </directive> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
334 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
335 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
336 <directive name="resolver_timeout"> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
337 <syntax><value>время</value></syntax> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
338 <default>30s</default> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
339 <context>stream</context> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
340 <context>server</context> |
1753
256774f145ac
Documented stream resolver and resolver_timeout for opensource.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1742
diff
changeset
|
341 <appeared-in>1.11.3</appeared-in> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
342 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
343 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
344 Задаёт таймаут для преобразования имени в адрес, например: |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
345 <example> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
346 resolver_timeout 5s; |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
347 </example> |
1462
e69e4dbcc760
Documented OSS stream modules.
Vladimir Homutov <vl@nginx.com>
parents:
1450
diff
changeset
|
348 <note> |
1753
256774f145ac
Documented stream resolver and resolver_timeout for opensource.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1742
diff
changeset
|
349 До версии 1.11.3 эта директива была доступна как часть |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
350 <commercial_version>коммерческой подписки</commercial_version>. |
1462
e69e4dbcc760
Documented OSS stream modules.
Vladimir Homutov <vl@nginx.com>
parents:
1450
diff
changeset
|
351 </note> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
352 </para> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
353 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
354 </directive> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
355 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
356 |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
357 <directive name="server"> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
358 <syntax block="yes"/> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
359 <default/> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
360 <context>stream</context> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
361 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
362 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
363 Задаёт конфигурацию для сервера. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
364 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
365 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
366 </directive> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
367 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
368 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
369 <directive name="stream"> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
370 <syntax block="yes"/> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
371 <default/> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
372 <context>main</context> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
373 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
374 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
375 Предоставляет контекст конфигурационного файла, в котором указываются |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
376 директивы stream-сервера. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
377 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
378 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
379 </directive> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
380 |
1546
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
381 |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
382 <directive name="tcp_nodelay"> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
383 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
384 <default>on</default> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
385 <context>stream</context> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
386 <context>server</context> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
387 <appeared-in>1.9.4</appeared-in> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
388 |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
389 <para> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
390 Разрешает или запрещает использование параметра <c-def>TCP_NODELAY</c-def>. |
1816
62854d567468
Updated Russian text of stream tcp_nodelay.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1798
diff
changeset
|
391 Параметр включается как для клиентских соединений, |
62854d567468
Updated Russian text of stream tcp_nodelay.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1798
diff
changeset
|
392 так и для соединений с проксируемыми серверами. |
1546
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
393 </para> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
394 |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
395 </directive> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
396 |
1741
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
397 |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
398 <directive name="variables_hash_bucket_size"> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
399 <syntax><value>размер</value></syntax> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
400 <default>64</default> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
401 <context>stream</context> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
402 <appeared-in>1.11.2</appeared-in> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
403 |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
404 <para> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
405 Задаёт размер корзины в хэш-таблице переменных. |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
406 Подробнее настройка хэш-таблиц обсуждается в отдельном |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
407 <link doc="../hash.xml">документе</link>. |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
408 </para> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
409 |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
410 </directive> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
411 |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
412 |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
413 <directive name="variables_hash_max_size"> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
414 <syntax><value>размер</value></syntax> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
415 <default>1024</default> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
416 <context>stream</context> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
417 <appeared-in>1.11.2</appeared-in> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
418 |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
419 <para> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
420 Задаёт максимальный <value>размер</value> хэш-таблицы переменных. |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
421 Подробнее настройка хэш-таблиц обсуждается в отдельном |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
422 <link doc="../hash.xml">документе</link>. |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
423 </para> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
424 |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
425 </directive> |
a99ebc3af3e4
Added variables_hash_bucket_size and variables_max_size in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1686
diff
changeset
|
426 |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
427 </section> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
428 |
1742
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
429 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
430 <section id="variables" name="Встроенные переменные"> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
431 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
432 <para> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
433 Модуль <literal>ngx_http_core_module</literal> поддерживает переменные |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
434 начиная с версии 1.11.2. |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
435 <list type="tag"> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
436 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
437 <tag-name id="var_binary_remote_addr"><var>$binary_remote_addr</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
438 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
439 адрес клиента в бинарном виде, длина значения всегда 4 байта |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
440 для IPv4-адресов или 16 байт для IPv6-адресов |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
441 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
442 |
1768
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
443 <tag-name id="var_bytes_received"><var>$bytes_received</var></tag-name> |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
444 <tag-desc> |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
445 число байт, полученных от клиента (1.11.4) |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
446 </tag-desc> |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
447 |
1742
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
448 <tag-name id="var_bytes_sent"><var>$bytes_sent</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
449 <tag-desc> |
1769
cc9d4e09a708
Corrected Russian language in $bytes_sent.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1768
diff
changeset
|
450 число байт, переданных клиенту |
1742
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
451 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
452 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
453 <tag-name id="var_connection"><var>$connection</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
454 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
455 порядковый номер соединения |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
456 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
457 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
458 <tag-name id="var_hostname"><var>$hostname</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
459 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
460 имя хоста |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
461 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
462 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
463 <tag-name id="var_msec"><var>$msec</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
464 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
465 текущее время в секундах с точностью до миллисекунд |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
466 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
467 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
468 <tag-name id="var_nginx_version"><var>$nginx_version</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
469 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
470 версия nginx |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
471 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
472 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
473 <tag-name id="var_pid"><var>$pid</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
474 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
475 номер (PID) рабочего процесса |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
476 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
477 |
1768
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
478 <tag-name id="var_protocol"><var>$protocol</var></tag-name> |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
479 <tag-desc> |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
480 протокол, используемый для работы с клиентом: |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
481 <literal>TCP</literal> или <literal>UDP</literal> (1.11.4) |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
482 </tag-desc> |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
483 |
1778
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
484 <tag-name id="var_proxy_protocol_addr"><var>$proxy_protocol_addr</var></tag-name> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
485 <tag-desc> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
486 адрес клиента, полученный из заголовка протокола PROXY, либо пустая строка |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
487 (1.11.4) |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
488 <para> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
489 Протокол PROXY должен быть предварительно включён при помощи установки |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
490 параметра <literal>proxy_protocol</literal> в директиве <link id="listen"/>. |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
491 </para> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
492 </tag-desc> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
493 |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
494 <tag-name id="var_proxy_protocol_port"><var>$proxy_protocol_port</var></tag-name> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
495 <tag-desc> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
496 порт клиента, полученный из заголовка протокола PROXY, либо пустая строка |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
497 (1.11.4) |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
498 <para> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
499 Протокол PROXY должен быть предварительно включён при помощи установки |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
500 параметра <literal>proxy_protocol</literal> в директиве <link id="listen"/>. |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
501 </para> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
502 </tag-desc> |
1626f1bf164c
Documented listen proxy_protocol, $proxy_protocol_addr, $proxy_protocol_port.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1771
diff
changeset
|
503 |
1742
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
504 <tag-name id="var_remote_addr"><var>$remote_addr</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
505 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
506 адрес клиента |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
507 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
508 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
509 <tag-name id="var_remote_port"><var>$remote_port</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
510 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
511 порт клиента |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
512 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
513 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
514 <tag-name id="var_server_addr"><var>$server_addr</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
515 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
516 адрес сервера, принявшего соединение |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
517 <para> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
518 Получение значения этой переменной обычно требует одного системного вызова. |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
519 Чтобы избежать системного вызова, в директивах <link id="listen"/> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
520 следует указывать адреса и использовать параметр <literal>bind</literal>. |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
521 </para> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
522 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
523 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
524 <tag-name id="var_server_port"><var>$server_port</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
525 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
526 порт сервера, принявшего соединение |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
527 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
528 |
1768
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
529 <tag-name id="var_session_time"><var>$session_time</var></tag-name> |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
530 <tag-desc> |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
531 длительность сессии в секундах с точностью до миллисекунд |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
532 (1.11.4); |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
533 </tag-desc> |
061b590cbe1a
Documented $bytes_received, $session_time, $protocol in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1753
diff
changeset
|
534 |
1771
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
535 <tag-name id="var_status"><var>$status</var></tag-name> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
536 <tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
537 статус сессии (1.11.4), может принимать одно из следующих значений: |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
538 <list type="tag"> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
539 |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
540 <tag-name><literal>200</literal></tag-name> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
541 <tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
542 сессия завершена успешно |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
543 </tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
544 |
1780
8df9ba4e56c6
Documented 400 error in stream $status.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1778
diff
changeset
|
545 <tag-name><literal>400</literal></tag-name> |
8df9ba4e56c6
Documented 400 error in stream $status.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1778
diff
changeset
|
546 <tag-desc> |
8df9ba4e56c6
Documented 400 error in stream $status.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1778
diff
changeset
|
547 невозможно разобрать данные, полученные от клиента, например |
8df9ba4e56c6
Documented 400 error in stream $status.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1778
diff
changeset
|
548 заголовок <link id="proxy_protocol">протокола PROXY</link> |
8df9ba4e56c6
Documented 400 error in stream $status.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1778
diff
changeset
|
549 </tag-desc> |
8df9ba4e56c6
Documented 400 error in stream $status.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1778
diff
changeset
|
550 |
1771
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
551 <tag-name><literal>403</literal></tag-name> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
552 <tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
553 доступ запрещён, например при ограничении доступа для |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
554 <link doc="ngx_stream_access_module.xml">определённых адресов клиентов</link> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
555 </tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
556 |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
557 <tag-name><literal>500</literal></tag-name> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
558 <tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
559 внутренняя ошибка сервера |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
560 </tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
561 |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
562 <tag-name><literal>502</literal></tag-name> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
563 <tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
564 плохой шлюз, например |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
565 если невозможно выбрать сервер группы или сервер недоступен |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
566 </tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
567 |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
568 <tag-name><literal>503</literal></tag-name> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
569 <tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
570 сервис недоступен, например при ограничении по |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
571 <link doc="ngx_stream_limit_conn_module.xml">числу соединений</link> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
572 </tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
573 |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
574 </list> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
575 </tag-desc> |
6a30f04a0208
Documented the $status variable in stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1769
diff
changeset
|
576 |
1742
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
577 <tag-name id="var_time_iso8601"><var>$time_iso8601</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
578 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
579 локальное время в формате по стандарту ISO 8601 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
580 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
581 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
582 <tag-name id="var_time_local"><var>$time_local</var></tag-name> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
583 <tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
584 локальное время в Common Log Format |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
585 </tag-desc> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
586 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
587 </list> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
588 </para> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
589 |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
590 </section> |
c511b73da3a9
Documented variables in ngx_stream_core_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1741
diff
changeset
|
591 |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
592 </module> |