changeset 2058:eb58ee50561d

Documented upstream name in $upstream_addr.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 10 Oct 2017 15:34:03 +0300
parents dd78dd9e2cb7
children 18d876538eee
files xml/en/docs/http/ngx_http_upstream_module.xml xml/en/docs/stream/ngx_stream_upstream_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml xml/ru/docs/stream/ngx_stream_upstream_module.xml
diffstat 4 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_upstream_module.xml	Wed Oct 11 15:11:21 2017 +0300
+++ b/xml/en/docs/http/ngx_http_upstream_module.xml	Tue Oct 10 15:34:03 2017 +0300
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_upstream_module"
         link="/en/docs/http/ngx_http_upstream_module.html"
         lang="en"
-        rev="62">
+        rev="63">
 
 <section id="summary">
 
@@ -1049,6 +1049,8 @@
 <link doc="ngx_http_core_module.xml" id="error_page"/>,
 then the server addresses from different groups are separated by colons, e.g.
 “<literal>192.168.1.1:80, 192.168.1.2:80, unix:/tmp/sock : 192.168.10.1:80, 192.168.10.2:80</literal>”.
+If a server cannot be selected,
+the variable keeps the name of the server group.
 </tag-desc>
 
 <tag-name id="var_upstream_bytes_received"><var>$upstream_bytes_received</var></tag-name>
--- a/xml/en/docs/stream/ngx_stream_upstream_module.xml	Wed Oct 11 15:11:21 2017 +0300
+++ b/xml/en/docs/stream/ngx_stream_upstream_module.xml	Tue Oct 10 15:34:03 2017 +0300
@@ -9,7 +9,7 @@
 <module name="Module ngx_stream_upstream_module"
         link="/en/docs/stream/ngx_stream_upstream_module.html"
         lang="en"
-        rev="25">
+        rev="26">
 
 <section id="summary">
 
@@ -509,6 +509,8 @@
 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>”.
+If a server cannot be selected,
+the variable keeps the name of the server group.
 </tag-desc>
 
 <tag-name id="var_upstream_bytes_sent"><var>$upstream_bytes_sent</var></tag-name>
--- a/xml/ru/docs/http/ngx_http_upstream_module.xml	Wed Oct 11 15:11:21 2017 +0300
+++ b/xml/ru/docs/http/ngx_http_upstream_module.xml	Tue Oct 10 15:34:03 2017 +0300
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_upstream_module"
         link="/ru/docs/http/ngx_http_upstream_module.html"
         lang="ru"
-        rev="62">
+        rev="63">
 
 <section id="summary">
 
@@ -1054,6 +1054,8 @@
 то адреса, соответствующие разным группам серверов, разделяются двоеточием,
 например,
 “<literal>192.168.1.1:80, 192.168.1.2:80, unix:/tmp/sock : 192.168.10.1:80, 192.168.10.2:80</literal>”.
+Если сервер не может быть выбран,
+то переменная хранит имя группы серверов.
 </tag-desc>
 
 <tag-name id="var_upstream_bytes_received"><var>$upstream_bytes_received</var></tag-name>
--- a/xml/ru/docs/stream/ngx_stream_upstream_module.xml	Wed Oct 11 15:11:21 2017 +0300
+++ b/xml/ru/docs/stream/ngx_stream_upstream_module.xml	Tue Oct 10 15:34:03 2017 +0300
@@ -9,7 +9,7 @@
 <module name="Модуль ngx_stream_upstream_module"
         link="/ru/docs/stream/ngx_stream_upstream_module.html"
         lang="ru"
-        rev="25">
+        rev="26">
 
 <section id="summary">
 
@@ -509,6 +509,8 @@
 Если при проксировании были сделаны обращения к нескольким серверам,
 то их адреса разделяются запятой, например
 “<literal>192.168.1.1:12345, 192.168.1.2:12345, unix:/tmp/sock</literal>”.
+Если сервер не может быть выбран,
+то переменная хранит имя группы серверов.
 </tag-desc>
 
 <tag-name id="var_upstream_bytes_sent"><var>$upstream_bytes_sent</var></tag-name>