Mercurial > hg > nginx-site
annotate xml/ru/docs/stream/ngx_stream_core_module.xml @ 1566:0ca33afb461b
Added the http2 module.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 15 Sep 2015 21:00:27 +0300 |
parents | 8ea1813272bb |
children | 48615cf80e20 |
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" |
1546
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
12 rev="10"> |
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 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
48 server { |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
49 listen 12345; |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
50 proxy_connect_timeout 1s; |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
51 proxy_timeout 3s; |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
52 proxy_pass backend; |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
53 } |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
54 |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
55 server { |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
56 listen [::1]:12345; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
57 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
|
58 } |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
59 } |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
60 </example> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
61 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
62 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
63 </section> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
64 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
65 |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
66 <section id="directives" name="Директивы"> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
67 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
68 <directive name="listen"> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
69 <syntax> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
70 <value>адрес</value>:<value>порт</value> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
71 [<literal>ssl</literal>] |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
72 [<literal>backlog</literal>=<value>число</value>] |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
73 [<literal>bind</literal>] |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
74 [<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
|
75 [<literal>reuseport</literal>] |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
76 [<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
|
77 <default/> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
78 <context>server</context> |
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 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
81 Задаёт <value>адрес</value> и <value>порт</value> для сокета, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
82 на котором сервер будет принимать соединения. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
83 Можно указать только порт. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
84 Кроме того, адрес может быть именем хоста, например: |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
85 <example> |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
86 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
|
87 listen *:12345; |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
88 listen 12345; # то же, что и *:12345 |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
89 listen localhost:12345; |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
90 </example> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
91 IPv6-адреса задаются в квадратных скобках: |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
92 <example> |
1405
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
93 listen [::1]:12345; |
4569719f4247
Split stream module into stream_core and stream_proxy modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1394
diff
changeset
|
94 listen [::]:12345; |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
95 </example> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
96 UNIX-сокеты задаются префиксом “<literal>unix:</literal>” |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
97 <example> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
98 listen unix:/var/run/nginx.sock; |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
99 </example> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
100 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
101 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
102 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
103 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
104 Параметр <literal>ssl</literal> указывает на то, что все соединения, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
105 принимаемые на данном порту, должны работать в режиме SSL. |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
106 </para> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
107 |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
108 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
109 В директиве <literal>listen</literal> можно также указать несколько |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
110 дополнительных параметров, специфичных для связанных с сокетами |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
111 системных вызовов. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
112 <list type="tag"> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
113 |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
114 <tag-name> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
115 <literal>backlog</literal>=<value>число</value> |
1502
b628e042a15e
Documented "listen backlog=" in mail and stream.
Ruslan Ermilov <ru@nginx.com>
parents:
1500
diff
changeset
|
116 </tag-name> |
b628e042a15e
Documented "listen backlog=" in mail and stream.
Ruslan Ermilov <ru@nginx.com>
parents:
1500
diff
changeset
|
117 <tag-desc> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
118 задаёт параметр <literal>backlog</literal> в вызове |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
119 <c-func>listen</c-func>, который ограничивает |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
120 максимальный размер очереди ожидающих приёма соединений (1.9.2). |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
121 По умолчанию <literal>backlog</literal> устанавливается равным -1 для |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
122 FreeBSD, DragonFly BSD и Mac OS X, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
123 и 511 для других платформ. |
1502
b628e042a15e
Documented "listen backlog=" in mail and stream.
Ruslan Ermilov <ru@nginx.com>
parents:
1500
diff
changeset
|
124 </tag-desc> |
b628e042a15e
Documented "listen backlog=" in mail and stream.
Ruslan Ermilov <ru@nginx.com>
parents:
1500
diff
changeset
|
125 |
b628e042a15e
Documented "listen backlog=" in mail and stream.
Ruslan Ermilov <ru@nginx.com>
parents:
1500
diff
changeset
|
126 <tag-name> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
127 <literal>bind</literal> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
128 </tag-name> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
129 <tag-desc> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
130 параметр указывает, что для данной пары |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
131 <value>адрес</value>:<value>порт</value> нужно делать |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
132 <c-func>bind</c-func> отдельно. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
133 Это нужно потому, что если описаны несколько директив <literal>listen</literal> |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
134 с одинаковым портом, но разными адресами, и одна из директив |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
135 <literal>listen</literal> слушает на всех адресах для данного порта |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
136 (<literal>*:</literal><value>порт</value>), то nginx сделает |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
137 <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
|
138 Необходимо заметить, что в этом случае для определения адреса, на которой |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
139 пришло соединение, делается системный вызов <c-func>getsockname</c-func>. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
140 Если же используются параметры <literal>ipv6only</literal> |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
141 или <literal>so_keepalive</literal>, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
142 то для данной пары |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
143 <value>адрес</value>:<value>порт</value> всегда делается |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
144 отдельный вызов <c-func>bind</c-func>. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
145 </tag-desc> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
146 |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
147 <tag-name> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
148 <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
|
149 </tag-name> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
150 <tag-desc> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
151 этот параметр определяет |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
152 (через параметр сокета <c-def>IPV6_V6ONLY</c-def>), |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
153 будет ли слушающий на wildcard-адресе <literal>[::]</literal> IPv6-сокет |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
154 принимать только IPv6-соединения, или же одновременно IPv6- и IPv4-соединения. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
155 По умолчанию параметр включён. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
156 Установить его можно только один раз на старте. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
157 </tag-desc> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
158 |
1507
14180fa9a518
Added ids for reuseport, mentioned reuseport in news.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1502
diff
changeset
|
159 <tag-name id="reuseport"> |
1493
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
160 <literal>reuseport</literal> |
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
161 </tag-name> |
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
162 <tag-desc> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
163 этот параметр (1.9.1) указывает, что нужно создавать отдельный слушающий сокет |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
164 для каждого рабочего процесса |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
165 (через параметр сокета <c-def>SO_REUSEPORT</c-def>), позволяя ядру |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
166 распределять входящие соединения между рабочими процессами. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
167 В настоящий момент это работает только на Linux 3.9+ и DragonFly BSD. |
1493
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
168 <note> |
1529
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 <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
|
171 в плане безопасности. |
1493
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
172 </note> |
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
173 </tag-desc> |
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
174 |
9faa78768252
Documented the "reuseport" option of the "listen" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1462
diff
changeset
|
175 <tag-name> |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
176 <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
|
177 </tag-name> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
178 <tag-desc> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
179 этот параметр конфигурирует для слушающего сокета |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
180 поведение “TCP keepalive”. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
181 Если этот параметр опущен, то для сокета будут действовать |
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 Если он установлен в значение “<literal>on</literal>”, то для сокета |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
184 включается параметр <c-def>SO_KEEPALIVE</c-def>. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
185 Если он установлен в значение “<literal>off</literal>”, то для сокета |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
186 параметр <c-def>SO_KEEPALIVE</c-def> выключается. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
187 Некоторые операционные системы поддерживают настройку параметров |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
188 “TCP keepalive” на уровне сокета посредством параметров |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
189 <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
|
190 <c-def>TCP_KEEPCNT</c-def>. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
191 На таких системах (в настоящий момент это Linux 2.4+, NetBSD 5+ и |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
192 FreeBSD 9.0-STABLE) |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
193 их можно сконфигурировать с помощью параметров <value>keepidle</value>, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
194 <value>keepintvl</value> и <value>keepcnt</value>. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
195 Один или два параметра могут быть опущены, в таком случае для |
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 системные настройки. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
198 Например, |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
199 <example>so_keepalive=30m::10</example> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
200 установит таймаут бездействия (<c-def>TCP_KEEPIDLE</c-def>) в 30 минут, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
201 для интервала проб (<c-def>TCP_KEEPINTVL</c-def>) будет действовать |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
202 стандартная системная настройка, а счётчик проб (<c-def>TCP_KEEPCNT</c-def>) |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
203 будет равен 10. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
204 </tag-desc> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
205 |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
206 </list> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
207 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
208 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
209 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
210 Разные серверы должны слушать на разных парах |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
211 <value>адрес</value>:<value>порт</value>. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
212 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
213 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
214 </directive> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
215 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
216 |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
217 <directive name="resolver"> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
218 <syntax> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
219 <value>адрес</value> ... |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
220 [<literal>valid</literal>=<value>время</value>] |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
221 [<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
|
222 <default/> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
223 <context>stream</context> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
224 <context>server</context> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
225 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
226 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
227 Задаёт серверы DNS, используемые для преобразования имён вышестоящих серверов |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
228 в адреса, например: |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
229 <example> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
230 resolver 127.0.0.1 [::1]:5353; |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
231 </example> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
232 Адрес может быть указан в виде доменного имени или IP-адреса, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
233 и необязательного порта. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
234 Если порт не указан, используется порт 53. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
235 Серверы DNS опрашиваются циклически. |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
236 </para> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
237 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
238 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
239 По умолчанию nginx будет искать как IPv4-, так и IPv6-адреса |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
240 при преобразовании имён в адреса. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
241 Если поиск IPv6-адресов нежелателен, |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
242 можно указать параметр <literal>ipv6=off</literal>. |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
243 </para> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
244 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
245 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
246 По умолчанию nginx кэширует ответы, используя значение TTL из ответа. |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
247 Необязательный параметр <literal>valid</literal> позволяет это |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
248 переопределить: |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
249 <example> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
250 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
|
251 </example> |
1462
e69e4dbcc760
Documented OSS stream modules.
Vladimir Homutov <vl@nginx.com>
parents:
1450
diff
changeset
|
252 <note> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
253 Эта директива доступна как часть |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
254 <commercial_version>коммерческой подписки</commercial_version>. |
1462
e69e4dbcc760
Documented OSS stream modules.
Vladimir Homutov <vl@nginx.com>
parents:
1450
diff
changeset
|
255 </note> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
256 </para> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
257 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
258 </directive> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
259 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
260 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
261 <directive name="resolver_timeout"> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
262 <syntax><value>время</value></syntax> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
263 <default>30s</default> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
264 <context>stream</context> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
265 <context>server</context> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
266 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
267 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
268 Задаёт таймаут для преобразования имени в адрес, например: |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
269 <example> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
270 resolver_timeout 5s; |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
271 </example> |
1462
e69e4dbcc760
Documented OSS stream modules.
Vladimir Homutov <vl@nginx.com>
parents:
1450
diff
changeset
|
272 <note> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
273 Эта директива доступна как часть |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
274 <commercial_version>коммерческой подписки</commercial_version>. |
1462
e69e4dbcc760
Documented OSS stream modules.
Vladimir Homutov <vl@nginx.com>
parents:
1450
diff
changeset
|
275 </note> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
276 </para> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
277 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
278 </directive> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
279 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1405
diff
changeset
|
280 |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
281 <directive name="server"> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
282 <syntax block="yes"/> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
283 <default/> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
284 <context>stream</context> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
285 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
286 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
287 Задаёт конфигурацию для сервера. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
288 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
289 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
290 </directive> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
291 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
292 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
293 <directive name="stream"> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
294 <syntax block="yes"/> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
295 <default/> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
296 <context>main</context> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
297 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
298 <para> |
1529
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
299 Предоставляет контекст конфигурационного файла, в котором указываются |
bcffd2161de7
Translated the stream core module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1528
diff
changeset
|
300 директивы stream-сервера. |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
301 </para> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
302 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
303 </directive> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
304 |
1546
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
305 |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
306 <directive name="tcp_nodelay"> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
307 <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
|
308 <default>on</default> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
309 <context>stream</context> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
310 <context>server</context> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
311 <appeared-in>1.9.4</appeared-in> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
312 |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
313 <para> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
314 Разрешает или запрещает использование параметра <c-def>TCP_NODELAY</c-def>. |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
315 Параметр включается как для клиентского соединения, |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
316 так и для соединения с проксируемым сервером. |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
317 </para> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
318 |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
319 </directive> |
8ea1813272bb
Documented the tcp_nodelay directive for stream.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1529
diff
changeset
|
320 |
1367
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
321 </section> |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
322 |
f1e14d87d833
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
323 </module> |