Mercurial > hg > nginx-site
comparison xml/en/docs/stream/ngx_stream_upstream_module.xml @ 1772:536dc1885e24
Documented the $upstream_addr variable in stream.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 06 Sep 2016 18:32:42 +0300 |
parents | ab56dcd73af2 |
children | 9c48a717e001 |
comparison
equal
deleted
inserted
replaced
1771:6a30f04a0208 | 1772:536dc1885e24 |
---|---|
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
8 | 8 |
9 <module name="Module ngx_stream_upstream_module" | 9 <module name="Module ngx_stream_upstream_module" |
10 link="/en/docs/stream/ngx_stream_upstream_module.html" | 10 link="/en/docs/stream/ngx_stream_upstream_module.html" |
11 lang="en" | 11 lang="en" |
12 rev="14"> | 12 rev="15"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 The <literal>ngx_stream_upstream_module</literal> module (1.9.0) | 17 The <literal>ngx_stream_upstream_module</literal> module (1.9.0) |
701 | 701 |
702 </directive> | 702 </directive> |
703 | 703 |
704 </section> | 704 </section> |
705 | 705 |
706 | |
707 <section id="variables" name="Embedded Variables"> | |
708 | |
709 <para> | |
710 The <literal>ngx_stream_upstream_module</literal> module | |
711 supports the following embedded variables: | |
712 <list type="tag"> | |
713 | |
714 <tag-name id="var_upstream_addr"><var>$upstream_addr</var></tag-name> | |
715 <tag-desc> | |
716 keeps the IP address and port, | |
717 or the path to the UNIX-domain socket of the upstream server (1.11.4). | |
718 If several servers were contacted during proxying, | |
719 their addresses are separated by commas, e.g. | |
720 “<literal>192.168.1.1:12345, 192.168.1.2:12345, unix:/tmp/sock</literal>”. | |
721 </tag-desc> | |
722 | |
723 </list> | |
724 </para> | |
725 | |
726 </section> | |
727 | |
706 </module> | 728 </module> |