# HG changeset patch # User Homutov Vladimir # Date 1363777206 -14400 # Node ID ade81792bdaa01578f11ca7d0849bdb581ae9586 # Parent 17d0c825f0984dcc245a4e127f03df774edca01b Documented SPDY support. New SPDY module added and the "listen" directive description is updated. diff -r 17d0c825f098 -r ade81792bdaa xml/en/GNUmakefile --- a/xml/en/GNUmakefile Mon Mar 18 13:59:13 2013 +0400 +++ b/xml/en/GNUmakefile Wed Mar 20 15:00:06 2013 +0400 @@ -61,6 +61,7 @@ http/ngx_http_referer_module \ http/ngx_http_rewrite_module \ http/ngx_http_secure_link_module \ + http/ngx_http_spdy_module \ http/ngx_http_split_clients_module \ http/ngx_http_ssi_module \ http/ngx_http_ssl_module \ diff -r 17d0c825f098 -r ade81792bdaa xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml Mon Mar 18 13:59:13 2013 +0400 +++ b/xml/en/docs/http/ngx_http_core_module.xml Wed Mar 20 15:00:06 2013 +0400 @@ -10,7 +10,7 @@ + rev="18">
@@ -1102,6 +1102,8 @@ address[:port] [default_server] + [ssl] + [spdy] [setfib=number] [backlog=number] [rcvbuf=size] @@ -1110,11 +1112,12 @@ [deferred] [bind] [ipv6only=on|off] - [ssl] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] port [default_server] + [ssl] + [spdy] [setfib=number] [backlog=number] [rcvbuf=size] @@ -1123,18 +1126,18 @@ [deferred] [bind] [ipv6only=on|off] - [ssl] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] unix:path [default_server] + [ssl] + [spdy] [backlog=number] [rcvbuf=size] [sndbuf=size] [accept_filter=filter] [deferred] [bind] - [ssl] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] *:80 | *:8000 server @@ -1189,6 +1192,22 @@ +The ssl parameter (0.7.14) allows to specify that all +connections accepted on this port should work in SSL mode. +This allows for a more compact configuration for the server that +handles both HTTP and HTTPS requests. + + + +The spdy parameter (1.3.15) allows to accept +SPDY connections on this port. +Normally, for this to work the ssl parameter should be +specified as well, but nginx can also be configured to accept SPDY +connections without SSL. + + + A listen directive can have several additional parameters specific to socket-related system calls. They can be specified in any @@ -1301,18 +1320,6 @@ -ssl - - -this parameter (0.7.14) does not relate to socket-related system calls, -but allows to specify that all connections accepted on this port -should work in SSL mode. -This allows for a more compact configuration for the server that -handles both HTTP and HTTPS requests. - - - so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt] diff -r 17d0c825f098 -r ade81792bdaa xml/en/docs/http/ngx_http_spdy_module.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/en/docs/http/ngx_http_spdy_module.xml Wed Mar 20 15:00:06 2013 +0400 @@ -0,0 +1,120 @@ + + + + + + + + +
+ + +The ngx_http_spdy_module module provides experimental +support for SPDY. +Currently, +draft +2 of SPDY protocol is implemented. + + + +This module is not built by default, it should be enabled with +the --with-http_spdy_module +configuration parameter. + + +
+ + +
+ + +The module is experimental, caveat emptor applies. + + + +Current implementation of SPDY protocol does not support “server push”. + + + +Processing of requests from SPDY connections cannot be rate +limited. + + +
+ + +
+ + + +server { + listen 443 ssl spdy; + + ssl_certificate server.crt; + ssl_certificate_key server.key; + ... +} + + +Note that in order to accept both +HTTPS and SPDY connections +simultaneously on the same port, +OpenSSL library used should support +“Next Protocol Negotiation” TLS extension, available since OpenSSL +version 1.0.1. + + + +
+ + +
+ + +level +0 +http +server + + +Sets a header compression level of a response in a range from +1 (fastest, less compression) to 9 (slowest, best compression). +The special value 0 turns off header compression. + + + + +
+ + +
+ + +The ngx_http_spdy_module module +supports the following embedded variables: + + +$spdy + +SPDY protocol version for SPDY connections, +or an empty string otherwise; + + +$spdy_request_priority + + +request priority for SPDY connections, +or an empty string otherwise. + + + + + +
+ +
diff -r 17d0c825f098 -r ade81792bdaa xml/en/docs/index.xml --- a/xml/en/docs/index.xml Mon Mar 18 13:59:13 2013 +0400 +++ b/xml/en/docs/index.xml Wed Mar 20 15:00:06 2013 +0400 @@ -288,6 +288,11 @@ + +ngx_http_spdy_module + + + ngx_http_split_clients_module diff -r 17d0c825f098 -r ade81792bdaa xml/ru/GNUmakefile --- a/xml/ru/GNUmakefile Mon Mar 18 13:59:13 2013 +0400 +++ b/xml/ru/GNUmakefile Wed Mar 20 15:00:06 2013 +0400 @@ -53,6 +53,7 @@ http/ngx_http_referer_module \ http/ngx_http_rewrite_module \ http/ngx_http_secure_link_module \ + http/ngx_http_spdy_module \ http/ngx_http_split_clients_module \ http/ngx_http_ssi_module \ http/ngx_http_ssl_module \ diff -r 17d0c825f098 -r ade81792bdaa xml/ru/docs/http/ngx_http_core_module.xml --- a/xml/ru/docs/http/ngx_http_core_module.xml Mon Mar 18 13:59:13 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_core_module.xml Wed Mar 20 15:00:06 2013 +0400 @@ -10,7 +10,7 @@ + rev="18">
@@ -1088,6 +1088,8 @@ адрес[:порт] [default_server] + [ssl] + [spdy] [setfib=число] [backlog=число] [rcvbuf=размер] @@ -1096,11 +1098,12 @@ [deferred] [bind] [ipv6only=on|off] - [ssl] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] порт [default_server] + [ssl] + [spdy] [setfib=число] [backlog=число] [rcvbuf=размер] @@ -1109,18 +1112,18 @@ [deferred] [bind] [ipv6only=on|off] - [ssl] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] unix:путь [default_server] + [ssl] + [spdy] [backlog=число] [rcvbuf=размер] [sndbuf=размер] [accept_filter=фильтр] [deferred] [bind] - [ssl] [so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt]] *:80 | *:8000 server @@ -1174,6 +1177,22 @@ +Параметр ssl(0.7.14) позволяет указать, что все соединения, +принимаемые на этом порту, должны работать в режиме SSL. +Это позволяет задать компактную конфигурацию для сервера, +работающего сразу в двух режимах — HTTP и HTTPS. + + + +Параметр spdy (1.3.15) позволяет принимать на этом порту +SPDY-соединения. +Обычно, чтобы это работало, следует также указать параметр +ssl, однако nginx можно также настроить и на приём +SPDY-соединений без SSL. + + + В директиве listen можно также указать несколько дополнительных параметров, специфичных для связанных с сокетами системных вызовов. @@ -1285,18 +1304,6 @@ -ssl - - -этот параметр (0.7.14) не имеет отношения к связанным с сокетами системным -вызовам, а позволяет указать, что все соединения, принимаемые на этом порту, -должны работать в режиме SSL. -Это позволяет задать компактную конфигурацию для сервера, -работающего сразу в двух режимах — HTTP и HTTPS. - - - so_keepalive=on|off|[keepidle]:[keepintvl]:[keepcnt] diff -r 17d0c825f098 -r ade81792bdaa xml/ru/docs/http/ngx_http_spdy_module.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/ru/docs/http/ngx_http_spdy_module.xml Wed Mar 20 15:00:06 2013 +0400 @@ -0,0 +1,120 @@ + + + + + + + + +
+ + +Модуль ngx_http_spdy_module обеспечивает экспериментальную +поддержку SPDY. +В настоящий момент реализован +draft +2 протокола SPDY. + + + +По умолчанию этот модуль не собирается, его сборку необходимо +разрешить с помощью конфигурационного параметра +--with-http_spdy_module. + + +
+ + +
+ + +Модуль экспериментальный, поэтому возможно всё. + + + +Текущая реализация протокола SPDY не поддерживает server push. + + + +Скорость обработки запросов в SPDY-соединении не может быть +ограничена. + + +
+ + +
+ + + +server { + listen 443 ssl spdy; + + ssl_certificate server.crt; + ssl_certificate_key server.key; + ... +} + + +Для того чтобы одновременно принимать +HTTPS и +SPDY соединения на том же порту, +используемая библиотека OpenSSL +должна поддерживать расширение Next Protocol Negotiation протокола TLS, +доступное с версии OpenSSL 1.0.1. + + + +
+ + +
+ + +степень +0 +http +server + + +Устанавливает степень сжатия заголовков ответа +в диапазоне от 1 (быстрее, но хуже сжатие) до 9 (медленнее, лучшее сжатие). +Специальное значение 0 отключает сжатие заголовков. + + + + +
+ + +
+ + +Модуль ngx_http_spdy_module +поддерживает следующие встроенные переменные: + + +$spdy + +версия протокола SPDY для SPDY-соединений, +либо пустая строка; + + +$spdy_request_priority + + +приоритет запроса для SPDY-соединений, +либо пустая строка. + + + + + +
+ +
diff -r 17d0c825f098 -r ade81792bdaa xml/ru/docs/index.xml --- a/xml/ru/docs/index.xml Mon Mar 18 13:59:13 2013 +0400 +++ b/xml/ru/docs/index.xml Wed Mar 20 15:00:06 2013 +0400 @@ -276,6 +276,11 @@ + +ngx_http_spdy_module + + + ngx_http_split_clients_module