Browse Source

document: add "remove SPDY" info

pull/815/head
Xiaochen Wang 9 years ago
parent
commit
d3c7b51dfe
  1. 68
      docs/modules/ngx_http_spdy_module.md
  2. 1
      docs/modules/ngx_http_spdy_module_cn.md

68
docs/modules/ngx_http_spdy_module.md

@ -0,0 +1,68 @@
# Name #
**NOTE**
1. This module has been updated to official nginx SPDY/3.1 module, the document is available here:
http://nginx.org/en/docs/http/ngx_http_spdy_module.html
2. This document only applies to Tengine-2.1.0 and its old version. But the listen option `spdy_detect` can still be used with SPDY/3.1.
3. Tengine-2.2.0 or later provides support for HTTP/2 and supersedes the SPDY module.
**ngx\_http\_spdy\_module**
Tengine added SPDY/3 support to this module. The new directives are listed below.
# Directives #
## spdy\_version ##
Syntax: **spdy\_version** [2|3]
Default: 3
Context: http, server
Specify the version of current SPDY protocol.
## spdy\_flow\_control ##
Syntax: **spdy\_flow\_control** on|off
Default: on
Context: http, server
Turn on or off with SPDY flow control.
## spdy\_init\_recv\_window\_size ##
Syntax: **spdy\_init\_recv\_window\_size** size
Default: 64k
Context: http, server
Specify the receiving window size for SPDY. By default, it's 64K. It will send a WINDOW UPDATE frame when it receives half of the window size data every time.
## spdy\_detect ##
Syntax: listen address[:port] [spdy_detect] [ssl]
Default:
Context: listen directive
Server can work for SPDY and HTTP on the same port with this directive. Note that the server will examine the first byte of one connection and determine whether the connection is SPDY or HTTP based on what it looks like (0x80 or 0x00 for SPDY).
Server will listen on port 80 for SPDY and HTTP, for example:
listen 80 spdy_detect;
Server will detect whether SPDY or HTTP is used without using a TLS extension (NPN), for example:
listen 443 ssl spdy_detect;
Server can detect whether SPDY or HTTP is used directly, and also it can negotiate with client via NPN, for example:
listen 443 ssl spdy_detect spdy;

1
docs/modules/ngx_http_spdy_module_cn.md

@ -4,6 +4,7 @@
1. Tengine-2.1.0以上版本的SPDY模块已经与官方nginx同步,只支持SPDY/3.1。
文档参考: http://nginx.org/en/docs/http/ngx_http_SPDY_module.html
2. 以下文档只适用于Tengine-2.1.0及以下版本,只支持SPDY/2和SPDY/3。listen参数`spdy_detect`在SPDY/3.1下任然可以使用。
3. Tengine-2.2.0以上版本将该模块删除,改为支持HTTP/2模块。
**ngx\_http\_spdy\_module**

Loading…
Cancel
Save