# HG changeset patch # User Yaroslav Zhuravlev # Date 1507638843 -10800 # Node ID eb58ee50561d745aaaaa770c8a4870e871a267b1 # Parent dd78dd9e2cb76ecf50c969c537d75638817b2b91 Documented upstream name in $upstream_addr. diff --git a/xml/en/docs/http/ngx_http_upstream_module.xml b/xml/en/docs/http/ngx_http_upstream_module.xml --- a/xml/en/docs/http/ngx_http_upstream_module.xml +++ b/xml/en/docs/http/ngx_http_upstream_module.xml @@ -10,7 +10,7 @@ + rev="63">
@@ -1049,6 +1049,8 @@ initiated by , then the server addresses from different groups are separated by colons, e.g. “192.168.1.1:80, 192.168.1.2:80, unix:/tmp/sock : 192.168.10.1:80, 192.168.10.2:80”. +If a server cannot be selected, +the variable keeps the name of the server group. $upstream_bytes_received diff --git a/xml/en/docs/stream/ngx_stream_upstream_module.xml b/xml/en/docs/stream/ngx_stream_upstream_module.xml --- a/xml/en/docs/stream/ngx_stream_upstream_module.xml +++ b/xml/en/docs/stream/ngx_stream_upstream_module.xml @@ -9,7 +9,7 @@ + rev="26">
@@ -509,6 +509,8 @@ or the path to the UNIX-domain socket of If several servers were contacted during proxying, their addresses are separated by commas, e.g. “192.168.1.1:12345, 192.168.1.2:12345, unix:/tmp/sock”. +If a server cannot be selected, +the variable keeps the name of the server group. $upstream_bytes_sent diff --git a/xml/ru/docs/http/ngx_http_upstream_module.xml b/xml/ru/docs/http/ngx_http_upstream_module.xml --- a/xml/ru/docs/http/ngx_http_upstream_module.xml +++ b/xml/ru/docs/http/ngx_http_upstream_module.xml @@ -10,7 +10,7 @@ + rev="63">
@@ -1054,6 +1054,8 @@ upstream backend { то адреса, соответствующие разным группам серверов, разделяются двоеточием, например, “192.168.1.1:80, 192.168.1.2:80, unix:/tmp/sock : 192.168.10.1:80, 192.168.10.2:80”. +Если сервер не может быть выбран, +то переменная хранит имя группы серверов. $upstream_bytes_received diff --git a/xml/ru/docs/stream/ngx_stream_upstream_module.xml b/xml/ru/docs/stream/ngx_stream_upstream_module.xml --- a/xml/ru/docs/stream/ngx_stream_upstream_module.xml +++ b/xml/ru/docs/stream/ngx_stream_upstream_module.xml @@ -9,7 +9,7 @@ + rev="26">
@@ -509,6 +509,8 @@ hash $remote_addr; Если при проксировании были сделаны обращения к нескольким серверам, то их адреса разделяются запятой, например “192.168.1.1:12345, 192.168.1.2:12345, unix:/tmp/sock”. +Если сервер не может быть выбран, +то переменная хранит имя группы серверов. $upstream_bytes_sent