# HG changeset patch # User Ruslan Ermilov # Date 1421670226 -10800 # Node ID 0702cc081c634101f5061d2558f01cb1dd33da1a # Parent d7cb4dcc1c3e24df26d6d01e47045da5503866d4 Revised descriptions of upstream module variables. 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="31">
@@ -1286,8 +1286,8 @@ supports the following embedded variable $upstream_addr -keeps the IP address and port of the server, -or the path to the UNIX-domain socket. +keeps the IP address and port, +or the path to the UNIX-domain socket of the upstream server. If several servers were contacted during request processing, their addresses are separated by commas, e.g. “192.168.1.1:80, 192.168.1.2:80, unix:/tmp/sock”. @@ -1306,7 +1306,7 @@ keeps the status of accessing a response The status can be either “MISS”, “BYPASS”, “EXPIRED”, “STALE”, “UPDATING”, -“REVALIDATED” or “HIT”. +“REVALIDATED”, or “HIT”. $upstream_cookie_name @@ -1314,32 +1314,35 @@ The status can be either “MISS”, cookie with the specified name sent by the upstream server in the
Set-Cookie
response header field (1.7.1). -Only the last server’s response header fields are saved. +Only the cookies from the response of the last server are saved.
$upstream_response_length -keeps the lengths of responses obtained from the upstream servers (0.7.27); -lengths are kept in bytes. -Several response lengths are separated by commas and colons -like addresses in the $upstream_addr variable. +keeps the length of the response obtained from the upstream server (0.7.27); +the length is kept in bytes. +Lengths of several responses +are separated by commas and colons like addresses in the +$upstream_addr variable. $upstream_response_time -keeps times of responses obtained from upstream servers; -times are kept in seconds with a milliseconds resolution. -Several response times are separated by commas and colons -like addresses in the $upstream_addr variable. +keeps time spent on receiving the response from the upstream server; +the time is kept in seconds with millisecond resolution. +Times of several responses +are separated by commas and colons like addresses in the +$upstream_addr variable. $upstream_status -keeps codes of responses obtained from upstream servers. -Several response codes are separated by commas and colons -like addresses in the $upstream_addr variable. +keeps status code of the response obtained from the upstream server. +Status codes of several responses +are separated by commas and colons like addresses in the +$upstream_addr variable. $upstream_http_name @@ -1349,8 +1352,8 @@ For example, the
Server
is available through the $upstream_http_server variable. The rules of converting header field names to variable names are the same as for the variables that start with the -“$http_” prefix. -Only the last server’s response header fields are saved. +“$http_” prefix. +Only the header fields from the response of the last server are saved. 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="31">
@@ -1298,7 +1298,7 @@ http://127.0.0.1/upstream_conf?upstream= $upstream_addr -хранит IP-адрес и порт сервера или путь к UNIX-сокету. +хранит IP-адрес и порт или путь к UNIX-сокету сервера группы. Если при обработке запроса были сделаны обращения к нескольким серверам, то их адреса разделяются запятой, например, “192.168.1.1:80, 192.168.1.2:80, unix:/tmp/sock”. @@ -1321,37 +1321,41 @@ http://127.0.0.1/upstream_conf?upstream= “REVALIDATED” или “HIT”. -$upstream_cookie_имя +$upstream_cookie_имя + кука с указанным именем, переданная сервером группы в поле
Set-Cookie
заголовка ответа (1.7.1). -Необходимо иметь в виду, что запоминаются поля заголовка только из ответа +Необходимо иметь в виду, что куки запоминаются только из ответа последнего сервера.
$upstream_response_length -хранит длины ответов, полученных от серверов группы (0.7.27); -длины хранятся в байтах. -Длины нескольких ответов разделяются запятыми и двоеточиями -подобно адресам в переменной $upstream_addr. +хранит длину ответа, полученного от сервера группы (0.7.27); +длина хранится в байтах. +Длины нескольких ответов +разделяются запятыми и двоеточиями подобно адресам в переменной +$upstream_addr. $upstream_response_time -хранит времена ответов, полученных от серверов группы; -времена хранятся в секундах с точностью до миллисекунд. -Времена нескольких ответов разделяются запятыми и двоеточиями -подобно адресам в переменной $upstream_addr. +хранит время, затраченное на получение ответа от сервера группы; +время хранится в секундах с точностью до миллисекунд. +Времена нескольких ответов +разделяются запятыми и двоеточиями подобно адресам в переменной +$upstream_addr. $upstream_status -хранит коды ответов, полученных от серверов группы. -Коды нескольких ответов разделяются запятыми и двоеточиями -подобно адресам в переменной $upstream_addr. +хранит статус ответа, полученного от сервера группы. +Статусы нескольких ответов +разделяются запятыми и двоеточиями подобно адресам в переменной +$upstream_addr. $upstream_http_имя @@ -1361,8 +1365,8 @@ http://127.0.0.1/upstream_conf?upstream= доступно в переменной $upstream_http_server. Правила преобразования имён полей заголовка ответа в имена переменных такие же, как для переменных с префиксом -“$http_”. -Необходимо иметь в виду, что запоминаются поля заголовка только из ответа +“$http_”. +Необходимо иметь в виду, что поля заголовка запоминаются только из ответа последнего сервера.