Mercurial > hg > nginx-site
changeset 2062:7275c134ec67
Documented "no live upstreams" case for $upstream_status.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 18 Oct 2017 15:30:44 +0300 |
parents | aac9e462320b |
children | 6855bdb15368 |
files | xml/en/docs/http/ngx_http_upstream_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_upstream_module.xml +++ b/xml/en/docs/http/ngx_http_upstream_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_upstream_module" link="/en/docs/http/ngx_http_upstream_module.html" lang="en" - rev="63"> + rev="64"> <section id="summary"> @@ -1138,6 +1138,8 @@ keeps status code of the response obtain Status codes of several responses are separated by commas and colons like addresses in the <link id="var_upstream_addr">$upstream_addr</link> variable. +If a server cannot be selected, +the variable keeps the <http-status code="502" text="Bad Gateway"/> status code. </tag-desc> </list>
--- a/xml/ru/docs/http/ngx_http_upstream_module.xml +++ b/xml/ru/docs/http/ngx_http_upstream_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_upstream_module" link="/ru/docs/http/ngx_http_upstream_module.html" lang="ru" - rev="63"> + rev="64"> <section id="summary"> @@ -1145,6 +1145,8 @@ upstream backend { Статусы нескольких ответов разделяются запятыми и двоеточиями подобно адресам в переменной <link id="var_upstream_addr">$upstream_addr</link>. +Если сервер не может быть выбран, то +переменная хранит статус <http-status code="502" text="Bad Gateway"/>. </tag-desc> </list>