# HG changeset patch # User Yaroslav Zhuravlev # Date 1442340027 -10800 # Node ID 0ca33afb461bdd8ae45fb18d91d40ee74128bd72 # Parent 300349b7aef3116823d41724fcc1e9b06dd744fc Added the http2 module. diff -r 300349b7aef3 -r 0ca33afb461b xml/en/GNUmakefile --- a/xml/en/GNUmakefile Thu Sep 17 14:29:03 2015 +0300 +++ b/xml/en/GNUmakefile Tue Sep 15 21:00:27 2015 +0300 @@ -83,6 +83,7 @@ http/ngx_http_upstream_conf_module \ http/ngx_http_userid_module \ http/ngx_http_uwsgi_module \ + http/ngx_http_v2_module \ http/ngx_http_xslt_module \ mail/ngx_mail_auth_http_module \ mail/ngx_mail_core_module \ diff -r 300349b7aef3 -r 0ca33afb461b xml/en/docs/http/ngx_http_limit_conn_module.xml --- a/xml/en/docs/http/ngx_http_limit_conn_module.xml Thu Sep 17 14:29:03 2015 +0300 +++ b/xml/en/docs/http/ngx_http_limit_conn_module.xml Tue Sep 15 21:00:27 2015 +0300 @@ -10,7 +10,7 @@ + rev="6">
@@ -77,7 +77,7 @@ allow only one connection per an IP address at a time. -In SPDY, each concurrent request is considered a separate connection. +In HTTP/2 and SPDY, each concurrent request is considered a separate connection. diff -r 300349b7aef3 -r 0ca33afb461b xml/en/docs/http/ngx_http_spdy_module.xml --- a/xml/en/docs/http/ngx_http_spdy_module.xml Thu Sep 17 14:29:03 2015 +0300 +++ b/xml/en/docs/http/ngx_http_spdy_module.xml Tue Sep 15 21:00:27 2015 +0300 @@ -9,7 +9,7 @@ + rev="8">
@@ -34,7 +34,9 @@ -This module is not available in the nginx-plus-http2 package. +This module was superseded by the +ngx_http_v2_module module +in 1.9.5. diff -r 300349b7aef3 -r 0ca33afb461b xml/en/docs/http/ngx_http_v2_module.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/en/docs/http/ngx_http_v2_module.xml Tue Sep 15 21:00:27 2015 +0300 @@ -0,0 +1,164 @@ + + + + + + + + +
+ + +The ngx_http_v2_module module (1.9.5) provides +support for HTTP/2 +and supersedes the +ngx_http_spdy_module module. + + + +This module is not built by default, it should be enabled with +the --with-http_v2_module +configuration parameter. + + + + +This module is also available as part of our +commercial subscription +in the nginx-plus-http2 package of NGINX Plus +release 7. + + + +
+ + +
+ + + +server { + listen 443 ssl http2; + + ssl_certificate server.crt; + ssl_certificate_key server.key; +} + + +Note that in order to accept both +HTTPS and HTTP/2 connections +simultaneously on the same port, the +OpenSSL library used should support +the “Application-Layer Protocol Negotiation” (ALPN) TLS extension +available only since OpenSSL version 1.0.2. +Accepting both types of connections with the +“Next Protocol Negotiation” (NPN) TLS extension available since OpenSSL +version 1.0.1 is possible but not guaranteed. + + + +
+ + +
+ + +size +8k +http +server +location + + +Sets the maximum size of chunks +into which the response body is sliced. +A too low value results in higher overhead. +A too high value impairs prioritization due to + +HOL blocking. + + + + + + +time +3m +http +server + + +Sets the timeout of inactivity after which the connection is closed. + + + + + + +number +128 +http +server + + +Sets the maximum number of concurrent HTTP/2 streams +in a connection. + + + + + + +size +256k +http + + +Sets the size of the per worker input buffer. + + + + + + +time +30s +http +server + + +Sets the timeout for expecting more data from the client, +after which the connection is closed. + + + + +
+ + +
+ + +The ngx_http_v2_module module +supports the following embedded variables: + + +$http2 + +negotiated protocol identifier: +“h2” for HTTP/2 over TLS, +“h2c” for HTTP/2 over cleartext TCP, +or an empty string otherwise. + + + + + +
+ +
diff -r 300349b7aef3 -r 0ca33afb461b xml/en/docs/index.xml --- a/xml/en/docs/index.xml Thu Sep 17 14:29:03 2015 +0300 +++ b/xml/en/docs/index.xml Tue Sep 15 21:00:27 2015 +0300 @@ -8,7 +8,7 @@
@@ -420,6 +420,11 @@ + +ngx_http_v2_module + + + ngx_http_xslt_module diff -r 300349b7aef3 -r 0ca33afb461b xml/en/index.xml --- a/xml/en/index.xml Thu Sep 17 14:29:03 2015 +0300 +++ b/xml/en/index.xml Tue Sep 15 21:00:27 2015 +0300 @@ -8,7 +8,7 @@
+ rev="44">
@@ -94,7 +94,12 @@ SSL and -TLS SNI support. +TLS SNI support; + + + +Support for HTTP/2 +with weighted and dependency-based prioritization. diff -r 300349b7aef3 -r 0ca33afb461b xml/ru/docs/http/ngx_http_limit_conn_module.xml --- a/xml/ru/docs/http/ngx_http_limit_conn_module.xml Thu Sep 17 14:29:03 2015 +0300 +++ b/xml/ru/docs/http/ngx_http_limit_conn_module.xml Tue Sep 15 21:00:27 2015 +0300 @@ -10,7 +10,7 @@ + rev="6">
@@ -76,7 +76,7 @@ разрешают одновременно обрабатывать не более одного соединения с одного IP-адреса. -В SPDY каждый параллельный запрос считается отдельным соединением. +В HTTP/2 и SPDY каждый параллельный запрос считается отдельным соединением. diff -r 300349b7aef3 -r 0ca33afb461b xml/ru/docs/http/ngx_http_spdy_module.xml --- a/xml/ru/docs/http/ngx_http_spdy_module.xml Thu Sep 17 14:29:03 2015 +0300 +++ b/xml/ru/docs/http/ngx_http_spdy_module.xml Tue Sep 15 21:00:27 2015 +0300 @@ -9,7 +9,7 @@ + rev="8">
@@ -32,6 +32,14 @@ --with-http_spdy_module. + + +Этот модуль был заменён модулем +ngx_http_v2_module +в версии 1.9.5. + + +
diff -r 300349b7aef3 -r 0ca33afb461b xml/ru/docs/index.xml --- a/xml/ru/docs/index.xml Thu Sep 17 14:29:03 2015 +0300 +++ b/xml/ru/docs/index.xml Tue Sep 15 21:00:27 2015 +0300 @@ -8,7 +8,7 @@
@@ -424,6 +424,11 @@ + +ngx_http_v2_module [en] + + + ngx_http_xslt_module diff -r 300349b7aef3 -r 0ca33afb461b xml/ru/index.xml --- a/xml/ru/index.xml Thu Sep 17 14:29:03 2015 +0300 +++ b/xml/ru/index.xml Tue Sep 15 21:00:27 2015 +0300 @@ -8,7 +8,7 @@
+ rev="44">
@@ -95,7 +95,12 @@ Поддержка SSL и -расширения TLS SNI. +расширения TLS SNI; + + + +Поддержка HTTP/2 +с приоритизацией на основе весов и зависимостей.