annotate xml/ru/docs/http/ngx_http_v2_module.xml @ 2976:cbd963190c15

Documented the http2 directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 13 Jun 2023 16:04:45 +0100
parents 9a8d15333a58
children e4718be70b33
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
1 <?xml version="1.0"?>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
2
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
3 <!--
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
4 Copyright (C) Nginx, Inc.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
5 -->
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
6
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
8
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
9 <module name="Модуль ngx_http_v2_module"
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
10 link="/ru/docs/http/ngx_http_v2_module.html"
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
11 lang="ru"
2976
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
12 rev="16">
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
13
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
14 <section id="summary">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
15
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
16 <para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
17 Модуль <literal>ngx_http_v2_module</literal> (1.9.5) обеспечивает
2972
9a8d15333a58 Removed obsolete SPDY documentation.
Sergey Kandaurov <pluknet@nginx.com>
parents: 2831
diff changeset
18 поддержку
9a8d15333a58 Removed obsolete SPDY documentation.
Sergey Kandaurov <pluknet@nginx.com>
parents: 2831
diff changeset
19 <link url="https://datatracker.ietf.org/doc/html/rfc7540">HTTP/2</link>.
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
20 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
21
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
22 <para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
23 По умолчанию этот модуль не собирается, его сборку необходимо разрешить
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
24 с помощью конфигурационного параметра
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
25 <literal>--with-http_v2_module</literal>.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
26 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
27
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
28 </section>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
29
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
30
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
31 <section id="issues" name="Известные проблемы">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
32
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
33 <para>
1671
5154b356a1b2 Unbuffered request body upload support in http2.
Ruslan Ermilov <ru@nginx.com>
parents: 1670
diff changeset
34 До версии 1.9.14
5154b356a1b2 Unbuffered request body upload support in http2.
Ruslan Ermilov <ru@nginx.com>
parents: 1670
diff changeset
35 буферизация тела запроса клиента не могла быть запрещена
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
36 независимо от
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
37 значения директив
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
38 <link doc="ngx_http_proxy_module.xml" id="proxy_request_buffering"/>,
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
39 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_request_buffering"/>,
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
40 <link doc="ngx_http_uwsgi_module.xml" id="uwsgi_request_buffering"/> и
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
41 <link doc="ngx_http_scgi_module.xml" id="scgi_request_buffering"/>.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
42 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
43
2567
4f3494d80949 Documented support for HTTP/2 in lingering_close.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2450
diff changeset
44 <para>
4f3494d80949 Documented support for HTTP/2 in lingering_close.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2450
diff changeset
45 До версии 1.19.1
4f3494d80949 Documented support for HTTP/2 in lingering_close.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2450
diff changeset
46 механизм <link doc="ngx_http_core_module.xml" id="lingering_close"/>
4f3494d80949 Documented support for HTTP/2 in lingering_close.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2450
diff changeset
47 не использовался в управлении закрытием HTTP/2-соединений.
4f3494d80949 Documented support for HTTP/2 in lingering_close.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2450
diff changeset
48 </para>
4f3494d80949 Documented support for HTTP/2 in lingering_close.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2450
diff changeset
49
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
50 </section>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
51
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
52
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
53 <section id="example" name="Пример конфигурации">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
54
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
55 <para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
56 <example>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
57 server {
2976
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
58 listen 443 ssl;
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
59
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
60 http2 on;
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
61
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
62 ssl_certificate server.crt;
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
63 ssl_certificate_key server.key;
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
64 }
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
65 </example>
1693
c841e77fcc1d Added missing comma.
Sergey Kandaurov <pluknet@nginx.com>
parents: 1671
diff changeset
66 Чтобы принимать HTTP/2-соединения по TLS, необходимо
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
67 наличие поддержки расширения “Application-Layer Protocol Negotiation” (ALPN)
2794
b74f2038f2b5 Removed support of NPN for http/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2654
diff changeset
68 протокола TLS, появившейся в
1670
e28e4e0b8520 Revised http2 module translation.
Ruslan Ermilov <ru@nginx.com>
parents: 1667
diff changeset
69 <link url="http://www.openssl.org">OpenSSL</link> версии 1.0.2.
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
70 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
71
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
72 <para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
73 Если
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
74 директива <link doc="ngx_http_ssl_module.xml" id="ssl_prefer_server_ciphers"/>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
75 установлена в значение “<literal>on</literal>”,
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
76 <link doc="ngx_http_ssl_module.xml" id="ssl_ciphers">шифры</link>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
77 должны быть настроены таким образом, чтобы соответствовать чёрному списку
2831
4add6ae1296f Updated links to datatracker.ietf.org.
Sergey Kandaurov <pluknet@nginx.com>
parents: 2794
diff changeset
78 <link url="https://datatracker.ietf.org/doc/html/rfc7540#appendix-A">RFC 7540, Appendix A</link>,
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
79 а также поддерживаться клиентами.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
80 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
81
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
82 </section>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
83
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
84
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
85 <section id="directives" name="Директивы">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
86
2976
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
87 <directive name="http2">
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
88 <syntax><literal>on</literal> | <literal>off</literal></syntax>
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
89 <default>off</default>
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
90 <context>http</context>
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
91 <context>server</context>
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
92 <appeared-in>1.25.1</appeared-in>
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
93
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
94 <para>
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
95 Разрешает
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
96 протокол
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
97 <link url="https://datatracker.ietf.org/doc/html/rfc9113">HTTP/2</link>.
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
98 </para>
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
99
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
100 </directive>
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
101
cbd963190c15 Documented the http2 directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2972
diff changeset
102
2142
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
103 <directive name="http2_body_preread_size">
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
104 <syntax><value>размер</value></syntax>
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
105 <default>64k</default>
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
106 <context>http</context>
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
107 <context>server</context>
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
108 <appeared-in>1.11.0</appeared-in>
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
109
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
110 <para>
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
111 Задаёт <value>размер</value> буфера для каждого запроса,
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
112 в который может сохраняться тело запроса
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
113 до того, как оно начнёт обрабатываться.
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
114 </para>
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
115
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
116 </directive>
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
117
ca7568f67dee Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents: 2105
diff changeset
118
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
119 <directive name="http2_chunk_size">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
120 <syntax><value>размер</value></syntax>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
121 <default>8k</default>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
122 <context>http</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
123 <context>server</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
124 <context>location</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
125
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
126 <para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
127 Задаёт максимальный размер частей,
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
128 на которое будет разделяться тело ответа.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
129 Слишком маленькое значение может привести к росту накладных расходов.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
130 Слишком большое значение может негативно сказаться на приоритизации из-за
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
131 <link url="http://en.wikipedia.org/wiki/Head-of-line_blocking">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
132 блокировки очереди</link>.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
133 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
134
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
135 </directive>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
136
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
137
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
138 <directive name="http2_idle_timeout">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
139 <syntax><value>время</value></syntax>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
140 <default>3m</default>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
141 <context>http</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
142 <context>server</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
143
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
144 <para>
2654
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
145 <note>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
146 Эта директива устарела начиная с версии 1.19.7.
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
147 Вместо неё следует использовать директиву
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
148 <link doc="ngx_http_core_module.xml" id="keepalive_timeout"/>.
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
149 </note>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
150 </para>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
151
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
152 <para>
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
153 Задаёт таймаут неактивности, после которого соединение закрывается.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
154 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
155
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
156 </directive>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
157
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
158
2105
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
159 <directive name="http2_max_concurrent_pushes">
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
160 <syntax><value>число</value></syntax>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
161 <default>10</default>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
162 <context>http</context>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
163 <context>server</context>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
164 <appeared-in>1.13.9</appeared-in>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
165
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
166 <para>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
167 Ограничивает максимальное число параллельных
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
168 <link id="http2_push">push</link>-запросов в соединении.
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
169 </para>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
170
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
171 </directive>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
172
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
173
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
174 <directive name="http2_max_concurrent_streams">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
175 <syntax><value>число</value></syntax>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
176 <default>128</default>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
177 <context>http</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
178 <context>server</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
179
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
180 <para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
181 Задаёт максимальное число параллельных HTTP/2-потоков
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
182 в соединении.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
183 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
184
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
185 </directive>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
186
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
187
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
188 <directive name="http2_max_field_size">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
189 <syntax><value>размер</value></syntax>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
190 <default>4k</default>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
191 <context>http</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
192 <context>server</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
193
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
194 <para>
2654
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
195 <note>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
196 Эта директива устарела начиная с версии 1.19.7.
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
197 Вместо неё следует использовать директиву
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
198 <link doc="ngx_http_core_module.xml" id="large_client_header_buffers"/>.
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
199 </note>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
200 </para>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
201
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
202 <para>
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
203 Ограничивает максимальный размер
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
204 заголовка запроса, сжатого при помощи
2831
4add6ae1296f Updated links to datatracker.ietf.org.
Sergey Kandaurov <pluknet@nginx.com>
parents: 2794
diff changeset
205 <link url="https://datatracker.ietf.org/doc/html/rfc7541">HPACK</link>.
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
206 Ограничение применяется в равной степени как к имени, так и к значению.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
207 Если применяется кодирование Хаффмана,
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
208 то фактический размер распакованных строк имени и значения может быть больше.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
209 Ограничение по умолчанию подходит для большинства запросов.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
210 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
211
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
212 </directive>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
213
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
214
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
215 <directive name="http2_max_header_size">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
216 <syntax><value>размер</value></syntax>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
217 <default>16k</default>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
218 <context>http</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
219 <context>server</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
220
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
221 <para>
2654
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
222 <note>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
223 Эта директива устарела начиная с версии 1.19.7.
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
224 Вместо неё следует использовать директиву
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
225 <link doc="ngx_http_core_module.xml" id="large_client_header_buffers"/>.
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
226 </note>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
227 </para>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
228
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
229 <para>
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
230 Ограничивает максимальный размер всего списка заголовков запроса после
2831
4add6ae1296f Updated links to datatracker.ietf.org.
Sergey Kandaurov <pluknet@nginx.com>
parents: 2794
diff changeset
231 распаковки <link url="https://datatracker.ietf.org/doc/html/rfc7541">HPACK</link>.
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
232 Ограничение по умолчанию подходит для большинства запросов.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
233 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
234
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
235 </directive>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
236
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
237
1834
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
238 <directive name="http2_max_requests">
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
239 <syntax><value>число</value></syntax>
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
240 <default>1000</default>
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
241 <context>http</context>
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
242 <context>server</context>
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
243 <appeared-in>1.11.6</appeared-in>
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
244
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
245 <para>
2654
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
246 <note>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
247 Эта директива устарела начиная с версии 1.19.7.
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
248 Вместо неё следует использовать директиву
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
249 <link doc="ngx_http_core_module.xml" id="keepalive_requests"/>.
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
250 </note>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
251 </para>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
252
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
253 <para>
2105
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
254 Задаёт максимальное число запросов (включая
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
255 <link id="http2_push">push</link>-запросы), которые можно
1834
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
256 сделать по одному соединению HTTP/2,
2105
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
257 после чего очередной клиентский запрос приведёт к закрытию соединения
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
258 и необходимости установить новое соединение.
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
259 </para>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
260
2450
a26a42699207 Added note about max number of keepalive requests.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2142
diff changeset
261 <para>
a26a42699207 Added note about max number of keepalive requests.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2142
diff changeset
262 Периодическое закрытие соединений необходимо для освобождения
a26a42699207 Added note about max number of keepalive requests.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2142
diff changeset
263 памяти, выделенной под конкретные соединения.
a26a42699207 Added note about max number of keepalive requests.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2142
diff changeset
264 Поэтому использование слишком большого максимального числа запросов
a26a42699207 Added note about max number of keepalive requests.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2142
diff changeset
265 может приводить к чрезмерному потреблению памяти и не рекомендуется.
a26a42699207 Added note about max number of keepalive requests.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2142
diff changeset
266 </para>
a26a42699207 Added note about max number of keepalive requests.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2142
diff changeset
267
2105
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
268 </directive>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
269
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
270
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
271 <directive name="http2_push">
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
272 <syntax><value>uri</value> | <literal>off</literal></syntax>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
273 <default>off</default>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
274 <context>http</context>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
275 <context>server</context>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
276 <context>location</context>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
277 <appeared-in>1.13.9</appeared-in>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
278
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
279 <para>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
280 Заблаговременно отправляет
2831
4add6ae1296f Updated links to datatracker.ietf.org.
Sergey Kandaurov <pluknet@nginx.com>
parents: 2794
diff changeset
281 (<link url="https://datatracker.ietf.org/doc/html/rfc7540#section-8.2">push</link>) запрос
2105
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
282 к заданному <value>uri</value>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
283 вместе с ответом на оригинальный запрос.
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
284 Будут обработаны только относительные URI с абсолютными путями,
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
285 например:
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
286 <example>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
287 http2_push /static/css/main.css;
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
288 </example>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
289 В значении <value>uri</value> допустимо использование переменных.
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
290 </para>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
291
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
292 <para>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
293 На одном уровне конфигурации можно указать несколько
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
294 <literal>http2_push</literal> директив.
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
295 Параметр <literal>off</literal> отменяет действие
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
296 унаследованных с предыдущего уровня конфигурации
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
297 директив <literal>http2_push</literal>.
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
298 </para>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
299
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
300 </directive>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
301
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
302
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
303 <directive name="http2_push_preload">
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
304 <syntax><literal>on</literal> | <literal>off</literal></syntax>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
305 <default>off</default>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
306 <context>http</context>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
307 <context>server</context>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
308 <context>location</context>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
309 <appeared-in>1.13.9</appeared-in>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
310
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
311 <para>
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
312 Разрешает автоматическое преобразование
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
313 <link url="https://www.w3.org/TR/preload/#server-push-http-2">preload
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
314 links</link>,
d45887ccafde Documented HTTP/2 server push.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2038
diff changeset
315 указанных в полях <header>Link</header> заголовка ответа, в
2831
4add6ae1296f Updated links to datatracker.ietf.org.
Sergey Kandaurov <pluknet@nginx.com>
parents: 2794
diff changeset
316 <link url="https://datatracker.ietf.org/doc/html/rfc7540#section-8.2">push</link>-запросы.
1834
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
317 </para>
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
318
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
319 </directive>
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
320
1d0811707e09 Documented the "http2_max_requests" directive.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 1707
diff changeset
321
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
322 <directive name="http2_recv_buffer_size">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
323 <syntax><value>размер</value></syntax>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
324 <default>256k</default>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
325 <context>http</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
326
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
327 <para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
328 Задаёт размер входного буфера для
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
329 <link doc="../ngx_core_module.xml" id="worker_processes">рабочего
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
330 процесса</link>.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
331 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
332
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
333 </directive>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
334
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
335
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
336 <directive name="http2_recv_timeout">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
337 <syntax><value>время</value></syntax>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
338 <default>30s</default>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
339 <context>http</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
340 <context>server</context>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
341
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
342 <para>
2654
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
343 <note>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
344 Эта директива устарела начиная с версии 1.19.7.
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
345 Вместо неё следует использовать директиву
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
346 <link doc="ngx_http_core_module.xml" id="client_header_timeout"/>.
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
347 </note>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
348 </para>
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
349
d13341d3c54a Marked some directives as obsolete in HTTP/2.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 2567
diff changeset
350 <para>
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
351 Задаёт таймаут в случае, когда от клиента ожидаются ещё данные,
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
352 после которого соединение закрывается.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
353 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
354
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
355 </directive>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
356
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
357 </section>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
358
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
359
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
360 <section id="variables" name="Встроенные переменные">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
361
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
362 <para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
363 Модуль <literal>ngx_http_v2_module</literal>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
364 поддерживает следующие встроенные переменные:
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
365 <list type="tag" compact="no">
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
366
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
367 <tag-name id="var_http2"><var>$http2</var></tag-name>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
368 <tag-desc>
1670
e28e4e0b8520 Revised http2 module translation.
Ruslan Ermilov <ru@nginx.com>
parents: 1667
diff changeset
369 согласованный идентификатор протокола:
1667
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
370 “<literal>h2</literal>” для HTTP/2 через TLS,
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
371 “<literal>h2c</literal>” для HTTP/2 через незашифрованный TCP,
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
372 либо пустая строка.
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
373 </tag-desc>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
374
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
375 </list>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
376 </para>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
377
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
378 </section>
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
379
beab8345acf6 Translated the http/2 module into Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff changeset
380 </module>