Mercurial > hg > nginx-site
diff xml/en/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 |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_v2_module.xml Tue Jun 13 18:15:59 2023 +0300 +++ b/xml/en/docs/http/ngx_http_v2_module.xml Tue Jun 13 16:04:45 2023 +0100 @@ -9,7 +9,7 @@ <module name="Module ngx_http_v2_module" link="/en/docs/http/ngx_http_v2_module.html" lang="en" - rev="15"> + rev="16"> <section id="summary"> @@ -55,7 +55,9 @@ <para> <example> server { - listen 443 ssl http2; + listen 443 ssl; + + http2 on; ssl_certificate server.crt; ssl_certificate_key server.key; @@ -82,6 +84,22 @@ <section id="directives" name="Directives"> +<directive name="http2"> +<syntax><literal>on</literal> | <literal>off</literal></syntax> +<default>off</default> +<context>http</context> +<context>server</context> +<appeared-in>1.25.1</appeared-in> + +<para> +Enables +the <link url="https://datatracker.ietf.org/doc/html/rfc9113">HTTP/2</link> +protocol. +</para> + +</directive> + + <directive name="http2_body_preread_size"> <syntax><value>size</value></syntax> <default>64k</default>