comparison xml/en/docs/stream/ngx_stream_proxy_module.xml @ 1758:2e0d07952c8f

Documented variables support for proxy_pass in stream.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 02 Aug 2016 21:58:31 +0300
parents ab56dcd73af2
children 6839c258c473
comparison
equal deleted inserted replaced
1757:40e461a34187 1758:2e0d07952c8f
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
8 8
9 <module name="Module ngx_stream_proxy_module" 9 <module name="Module ngx_stream_proxy_module"
10 link="/en/docs/stream/ngx_stream_proxy_module.html" 10 link="/en/docs/stream/ngx_stream_proxy_module.html"
11 lang="en" 11 lang="en"
12 rev="15"> 12 rev="16">
13 13
14 <section id="summary"> 14 <section id="summary">
15 15
16 <para> 16 <para>
17 The <literal>ngx_stream_proxy_module</literal> module (1.9.0) allows proxying 17 The <literal>ngx_stream_proxy_module</literal> module (1.9.0) allows proxying
213 used in a round-robin fashion. 213 used in a round-robin fashion.
214 In addition, an address can be specified as a 214 In addition, an address can be specified as a
215 <link doc="ngx_stream_upstream_module.xml">server group</link>. 215 <link doc="ngx_stream_upstream_module.xml">server group</link>.
216 </para> 216 </para>
217 217
218 <para>
219 The address can also be specified using variables (1.11.3):
220 <example>
221 proxy_pass $upstream;
222 </example>
223 In this case, the server name is searched among the described
224 <link doc="ngx_stream_upstream_module.xml">server groups</link>,
225 and, if not found, is determined using a
226 <link doc="ngx_stream_core_module.xml" id="resolver"/>.
227 </para>
228
218 </directive> 229 </directive>
219 230
220 231
221 <directive name="proxy_protocol"> 232 <directive name="proxy_protocol">
222 <syntax><literal>on</literal> | <literal>off</literal></syntax> 233 <syntax><literal>on</literal> | <literal>off</literal></syntax>
339 Allows overriding the server name used to 350 Allows overriding the server name used to
340 <link id="proxy_ssl_verify">verify</link> 351 <link id="proxy_ssl_verify">verify</link>
341 the certificate of the proxied server and to be 352 the certificate of the proxied server and to be
342 <link id="proxy_ssl_server_name">passed through SNI</link> 353 <link id="proxy_ssl_server_name">passed through SNI</link>
343 when establishing a connection with the proxied server. 354 when establishing a connection with the proxied server.
355 The server name can also be specified using variables (1.11.3).
344 </para> 356 </para>
345 357
346 <para> 358 <para>
347 By default, the host part of the <link id="proxy_pass"/> address is used. 359 By default, the host part of the <link id="proxy_pass"/> address is used.
348 </para> 360 </para>