comparison 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
comparison
equal deleted inserted replaced
2975:f8ad45c72992 2976:cbd963190c15
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
8 8
9 <module name="Модуль ngx_http_v2_module" 9 <module name="Модуль ngx_http_v2_module"
10 link="/ru/docs/http/ngx_http_v2_module.html" 10 link="/ru/docs/http/ngx_http_v2_module.html"
11 lang="ru" 11 lang="ru"
12 rev="15"> 12 rev="16">
13 13
14 <section id="summary"> 14 <section id="summary">
15 15
16 <para> 16 <para>
17 Модуль <literal>ngx_http_v2_module</literal> (1.9.5) обеспечивает 17 Модуль <literal>ngx_http_v2_module</literal> (1.9.5) обеспечивает
53 <section id="example" name="Пример конфигурации"> 53 <section id="example" name="Пример конфигурации">
54 54
55 <para> 55 <para>
56 <example> 56 <example>
57 server { 57 server {
58 listen 443 ssl http2; 58 listen 443 ssl;
59
60 http2 on;
59 61
60 ssl_certificate server.crt; 62 ssl_certificate server.crt;
61 ssl_certificate_key server.key; 63 ssl_certificate_key server.key;
62 } 64 }
63 </example> 65 </example>
79 81
80 </section> 82 </section>
81 83
82 84
83 <section id="directives" name="Директивы"> 85 <section id="directives" name="Директивы">
86
87 <directive name="http2">
88 <syntax><literal>on</literal> | <literal>off</literal></syntax>
89 <default>off</default>
90 <context>http</context>
91 <context>server</context>
92 <appeared-in>1.25.1</appeared-in>
93
94 <para>
95 Разрешает
96 протокол
97 <link url="https://datatracker.ietf.org/doc/html/rfc9113">HTTP/2</link>.
98 </para>
99
100 </directive>
101
84 102
85 <directive name="http2_body_preread_size"> 103 <directive name="http2_body_preread_size">
86 <syntax><value>размер</value></syntax> 104 <syntax><value>размер</value></syntax>
87 <default>64k</default> 105 <default>64k</default>
88 <context>http</context> 106 <context>http</context>