Mercurial > hg > nginx-site
changeset 1392:82e62822abe8
Sorted upstream module variables.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 19 Jan 2015 15:23:48 +0300 |
parents | 0702cc081c63 |
children | 15e8779f0ceb |
files | xml/en/docs/http/ngx_http_upstream_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml |
diffstat | 2 files changed, 25 insertions(+), 25 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="31"> + rev="32"> <section id="summary"> @@ -1317,6 +1317,17 @@ in the <header>Set-Cookie</header> respo Only the cookies from the response of the last server are saved. </tag-desc> +<tag-name id="var_upstream_http_"><var>$upstream_http_</var><value>name</value></tag-name> +<tag-desc> +keep server response header fields. +For example, the <header>Server</header> response header field +is available through the <var>$upstream_http_server</var> variable. +The rules of converting header field names to variable names are the same +as for the variables that start with the +“<link doc="ngx_http_core_module.xml" id="var_http_">$http_</link>” prefix. +Only the header fields from the response of the last server are saved. +</tag-desc> + <tag-name id="var_upstream_response_length"><var>$upstream_response_length</var> </tag-name> <tag-desc> @@ -1345,17 +1356,6 @@ are separated by commas and colons like <link id="var_upstream_addr">$upstream_addr</link> variable. </tag-desc> -<tag-name id="var_upstream_http_"><var>$upstream_http_</var><value>name</value></tag-name> -<tag-desc> -keep server response header fields. -For example, the <header>Server</header> response header field -is available through the <var>$upstream_http_server</var> variable. -The rules of converting header field names to variable names are the same -as for the variables that start with the -“<link doc="ngx_http_core_module.xml" id="var_http_">$http_</link>” prefix. -Only the header fields from the response of the last server are saved. -</tag-desc> - </list> </para>
--- 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="31"> + rev="32"> <section id="summary"> @@ -1330,6 +1330,18 @@ http://127.0.0.1/upstream_conf?upstream= последнего сервера. </tag-desc> +<tag-name id="var_upstream_http_"><var>$upstream_http_</var><value>имя</value></tag-name> +<tag-desc> +хранят поля заголовка ответа сервера. +Например, поле заголовка ответа <header>Server</header> +доступно в переменной <var>$upstream_http_server</var>. +Правила преобразования имён полей заголовка ответа в имена переменных +такие же, как для переменных с префиксом +“<link doc="ngx_http_core_module.xml" id="var_http_">$http_</link>”. +Необходимо иметь в виду, что поля заголовка запоминаются только из ответа +последнего сервера. +</tag-desc> + <tag-name id="var_upstream_response_length"><var>$upstream_response_length</var> </tag-name> <tag-desc> @@ -1358,18 +1370,6 @@ http://127.0.0.1/upstream_conf?upstream= <link id="var_upstream_addr">$upstream_addr</link>. </tag-desc> -<tag-name id="var_upstream_http_"><var>$upstream_http_</var><value>имя</value></tag-name> -<tag-desc> -хранят поля заголовка ответа сервера. -Например, поле заголовка ответа <header>Server</header> -доступно в переменной <var>$upstream_http_server</var>. -Правила преобразования имён полей заголовка ответа в имена переменных -такие же, как для переменных с префиксом -“<link doc="ngx_http_core_module.xml" id="var_http_">$http_</link>”. -Необходимо иметь в виду, что поля заголовка запоминаются только из ответа -последнего сервера. -</tag-desc> - </list> </para>