Mercurial > hg > nginx-site
changeset 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 | 6a30f04a0208 |
children | 9c48a717e001 |
files | xml/en/docs/stream/ngx_stream_upstream_module.xml xml/ru/docs/stream/ngx_stream_upstream_module.xml |
diffstat | 2 files changed, 45 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/stream/ngx_stream_upstream_module.xml +++ b/xml/en/docs/stream/ngx_stream_upstream_module.xml @@ -9,7 +9,7 @@ <module name="Module ngx_stream_upstream_module" link="/en/docs/stream/ngx_stream_upstream_module.html" lang="en" - rev="14"> + rev="15"> <section id="summary"> @@ -703,4 +703,26 @@ This directive is available as part of o </section> + +<section id="variables" name="Embedded Variables"> + +<para> +The <literal>ngx_stream_upstream_module</literal> module +supports the following embedded variables: +<list type="tag"> + +<tag-name id="var_upstream_addr"><var>$upstream_addr</var></tag-name> +<tag-desc> +keeps the IP address and port, +or the path to the UNIX-domain socket of the upstream server (1.11.4). +If several servers were contacted during proxying, +their addresses are separated by commas, e.g. +“<literal>192.168.1.1:12345, 192.168.1.2:12345, unix:/tmp/sock</literal>”. +</tag-desc> + +</list> +</para> + +</section> + </module>
--- a/xml/ru/docs/stream/ngx_stream_upstream_module.xml +++ b/xml/ru/docs/stream/ngx_stream_upstream_module.xml @@ -9,7 +9,7 @@ <module name="Модуль ngx_stream_upstream_module" link="/ru/docs/stream/ngx_stream_upstream_module.html" lang="ru" - rev="14"> + rev="15"> <section id="summary"> @@ -705,4 +705,25 @@ server { </section> + +<section id="variables" name="Встроенные переменные"> + +<para> +Модуль <literal>ngx_stream_upstream_module</literal> +поддерживает следующие встроенные переменные: +<list type="tag"> + +<tag-name id="var_upstream_addr"><var>$upstream_addr</var></tag-name> +<tag-desc> +хранит IP-адрес и порт или путь к UNIX-сокету сервера группы (1.11.4). +Если при проксировании были сделаны обращения к нескольким серверам, +то их адреса разделяются запятой, например +“<literal>192.168.1.1:12345, 192.168.1.2:12345, unix:/tmp/sock</literal>”. +</tag-desc> + +</list> +</para> + +</section> + </module>