Mercurial > hg > nginx-site
changeset 940:ded8f4a5de28
Corrected description of the $host variable.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 05 Jul 2013 08:11:36 +0400 |
parents | 2a9e42106d6f |
children | 7d1d53d4d293 |
files | xml/en/docs/http/ngx_http_core_module.xml xml/ru/docs/http/ngx_http_core_module.xml |
diffstat | 2 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_core_module.xml Thu Jul 04 12:11:28 2013 +0400 +++ b/xml/en/docs/http/ngx_http_core_module.xml Fri Jul 05 08:11:36 2013 +0400 @@ -10,7 +10,7 @@ <module name="Module ngx_http_core_module" link="/en/docs/http/ngx_http_core_module.html" lang="en" - rev="20"> + rev="21"> <section id="directives" name="Directives"> @@ -2787,8 +2787,10 @@ <tag-name id="var_host"><var>$host</var></tag-name> <tag-desc> -<header>Host</header> request header field, -or the server name matching a request if this field is not present +in this order of precedence: +host name from the request line, or +host name from the <header>Host</header> request header field, or +the server name matching a request </tag-desc> <tag-name id="var_hostname"><var>$hostname</var></tag-name>
--- a/xml/ru/docs/http/ngx_http_core_module.xml Thu Jul 04 12:11:28 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_core_module.xml Fri Jul 05 08:11:36 2013 +0400 @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_core_module" link="/ru/docs/http/ngx_http_core_module.html" lang="ru" - rev="20"> + rev="21"> <section id="directives" name="Директивы"> @@ -2773,8 +2773,10 @@ <tag-name id="var_host"><var>$host</var></tag-name> <tag-desc> -поле <header>Host</header> заголовка запроса, -или имя сервера, соответствующего запросу, если этого поля нет +в порядке приоритета: +имя хоста из строки запроса, или +имя хоста из поля <header>Host</header> заголовка запроса, или +имя сервера, соответствующего запросу </tag-desc> <tag-name id="var_hostname"><var>$hostname</var></tag-name>