Mercurial > hg > nginx-site
annotate xml/en/docs/http/ngx_http_spdy_module.xml @ 1525:e47758a54759
Updated the "WebSockets Proxying" article with proxy_read_timeout.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 01 Jul 2015 15:54:32 +0300 |
parents | a32df48d88fc |
children | ed420c318557 |
rev | line source |
---|---|
869 | 1 <?xml version="1.0"?> |
2 | |
3 <!-- | |
4 Copyright (C) Nginx, Inc. | |
5 --> | |
6 | |
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | |
8 | |
9 <module name="Module ngx_http_spdy_module" | |
10 link="/en/docs/http/ngx_http_spdy_module.html" | |
11 lang="en" | |
1447
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
12 rev="6"> |
869 | 13 |
14 <section id="summary"> | |
15 | |
16 <para> | |
17 The <literal>ngx_http_spdy_module</literal> module provides experimental | |
18 support for <link url="http://www.chromium.org/spdy/spdy-protocol">SPDY</link>. | |
19 Currently, | |
1058
2ef5a63ce6e2
Documented SPDY/3.1 support.
Ruslan Ermilov <ru@nginx.com>
parents:
1051
diff
changeset
|
20 <link url="http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3-1">draft |
2ef5a63ce6e2
Documented SPDY/3.1 support.
Ruslan Ermilov <ru@nginx.com>
parents:
1051
diff
changeset
|
21 3.1</link> of SPDY protocol is implemented. |
2ef5a63ce6e2
Documented SPDY/3.1 support.
Ruslan Ermilov <ru@nginx.com>
parents:
1051
diff
changeset
|
22 <note> |
2ef5a63ce6e2
Documented SPDY/3.1 support.
Ruslan Ermilov <ru@nginx.com>
parents:
1051
diff
changeset
|
23 Before version 1.5.10, |
869 | 24 <link url="http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2">draft |
1058
2ef5a63ce6e2
Documented SPDY/3.1 support.
Ruslan Ermilov <ru@nginx.com>
parents:
1051
diff
changeset
|
25 2</link> of SPDY protocol was implemented. |
2ef5a63ce6e2
Documented SPDY/3.1 support.
Ruslan Ermilov <ru@nginx.com>
parents:
1051
diff
changeset
|
26 </note> |
869 | 27 </para> |
28 | |
29 <para> | |
30 This module is not built by default, it should be enabled with | |
31 the <literal>--with-http_spdy_module</literal> | |
32 configuration parameter. | |
33 </para> | |
34 | |
35 </section> | |
36 | |
37 | |
38 <section id="bugs" name="Known Bugs"> | |
39 | |
40 <para> | |
41 The module is experimental, caveat emptor applies. | |
42 </para> | |
43 | |
44 <para> | |
45 Current implementation of SPDY protocol does not support “server push”. | |
46 </para> | |
47 | |
48 <para> | |
1050
85804d815ed3
The SPDY module now supports "limit_rate".
Valentin Bartenev <vbart@nginx.com>
parents:
966
diff
changeset
|
49 In versions prior to 1.5.9, responses in SPDY connections could not be |
886
ca9a259cb5c8
The SPDY module does not support "limit_rate", not "limit_req".
Valentin Bartenev <vbart@nginx.com>
parents:
869
diff
changeset
|
50 <link doc="ngx_http_core_module.xml" id="limit_rate">rate limited</link>. |
869 | 51 </para> |
52 | |
1447
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
53 <para> |
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
54 Buffering of a client request body cannot be disabled |
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
55 regardless of |
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
56 <link doc="ngx_http_proxy_module.xml" id="proxy_request_buffering"/>, |
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
57 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_request_buffering"/>, |
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
58 <link doc="ngx_http_uwsgi_module.xml" id="uwsgi_request_buffering"/>, and |
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
59 <link doc="ngx_http_scgi_module.xml" id="scgi_request_buffering"/> |
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
60 directive values. |
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
61 </para> |
a32df48d88fc
Documented that proxy_request_buffering is on with SPDY enabled.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1058
diff
changeset
|
62 |
869 | 63 </section> |
64 | |
65 | |
66 <section id="example" name="Example Configuration"> | |
67 | |
68 <para> | |
69 <example> | |
70 server { | |
71 listen 443 ssl spdy; | |
72 | |
73 ssl_certificate server.crt; | |
74 ssl_certificate_key server.key; | |
75 ... | |
76 } | |
77 </example> | |
78 <note> | |
79 Note that in order to accept both | |
80 <link doc="ngx_http_ssl_module.xml">HTTPS</link> and SPDY connections | |
81 simultaneously on the same port, | |
82 <link url="http://www.openssl.org">OpenSSL</link> library used should support | |
83 “Next Protocol Negotiation” TLS extension, available since OpenSSL | |
84 version 1.0.1. | |
85 </note> | |
86 </para> | |
87 | |
88 </section> | |
89 | |
90 | |
91 <section id="directives" name="Directives"> | |
92 | |
1051
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
93 <directive name="spdy_chunk_size"> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
94 <syntax><value>size</value></syntax> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
95 <default>8k</default> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
96 <context>http</context> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
97 <context>server</context> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
98 <context>location</context> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
99 <appeared-in>1.5.9</appeared-in> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
100 |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
101 <para> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
102 Sets the maximum size of chunks |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
103 into which the response body is |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
104 <link url="http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2#TOC-Data-frames"> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
105 sliced</link>. |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
106 A too low value results in higher overhead. |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
107 A too high value impairs prioritization due to |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
108 <link url="http://en.wikipedia.org/wiki/Head-of-line_blocking"> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
109 HOL blocking</link>. |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
110 </para> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
111 |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
112 </directive> |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
113 |
29de277bf322
Documented the "spdy_chunk_size" directive.
Yaroslav Zhuravlev <yaroslav.zhuravlev@nginx.com>
parents:
1050
diff
changeset
|
114 |
869 | 115 <directive name="spdy_headers_comp"> |
116 <syntax><value>level</value></syntax> | |
117 <default>0</default> | |
118 <context>http</context> | |
119 <context>server</context> | |
120 | |
121 <para> | |
966 | 122 Sets the header compression <value>level</value> of a response in a range from |
869 | 123 1 (fastest, less compression) to 9 (slowest, best compression). |
966 | 124 The special value 0 turns off the header compression. |
869 | 125 </para> |
126 | |
127 </directive> | |
128 | |
129 </section> | |
130 | |
131 | |
132 <section id="variables" name="Embedded Variables"> | |
133 | |
134 <para> | |
135 The <literal>ngx_http_spdy_module</literal> module | |
136 supports the following embedded variables: | |
137 <list type="tag" compact="no"> | |
138 | |
139 <tag-name id="var_spdy"><var>$spdy</var></tag-name> | |
140 <tag-desc> | |
141 SPDY protocol version for SPDY connections, | |
142 or an empty string otherwise; | |
143 </tag-desc> | |
144 | |
145 <tag-name id="var_spdy_request_priority"><var>$spdy_request_priority</var> | |
146 </tag-name> | |
147 <tag-desc> | |
148 request priority for SPDY connections, | |
149 or an empty string otherwise. | |
150 </tag-desc> | |
151 | |
152 </list> | |
153 </para> | |
154 | |
155 </section> | |
156 | |
157 </module> |