Mercurial > hg > nginx-site
changeset 1873:2f851f71ff08
Documented $scheme support in the "rewrite" directive.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 21 Dec 2016 22:52:16 +0300 |
parents | f3f268ab3573 |
children | 33f742032155 |
files | xml/en/docs/http/ngx_http_rewrite_module.xml xml/ru/docs/http/ngx_http_rewrite_module.xml |
diffstat | 2 files changed, 12 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_rewrite_module.xml +++ b/xml/en/docs/http/ngx_http_rewrite_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_rewrite_module" link="/en/docs/http/ngx_http_rewrite_module.html" lang="en" - rev="6"> + rev="7"> <section id="summary"> @@ -264,9 +264,9 @@ as specified in the <value>replacement</ The <literal>rewrite</literal> directives are executed sequentially in order of their appearance in the configuration file. It is possible to terminate further processing of the directives using flags. -If a replacement string starts with “<literal>http://</literal>” -or “<literal>https://</literal>”, the processing stops and the -redirect is returned to a client. +If a replacement string starts with “<literal>http://</literal>”, +“<literal>https://</literal>”, or “<literal>$scheme</literal>”, +the processing stops and the redirect is returned to a client. </para> <para> @@ -291,7 +291,8 @@ as with the <link id="break"/> directive <tag-desc> returns a temporary redirect with the 302 code; used if a replacement string does not start with -“<literal>http://</literal>” or “<literal>https://</literal>”; +“<literal>http://</literal>”, “<literal>https://</literal>”, +or “<literal>$scheme</literal>”; </tag-desc> <tag-name><literal>permanent</literal></tag-name>
--- a/xml/ru/docs/http/ngx_http_rewrite_module.xml +++ b/xml/ru/docs/http/ngx_http_rewrite_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_rewrite_module" link="/ru/docs/http/ngx_http_rewrite_module.html" lang="ru" - rev="6"> + rev="7"> <section id="summary"> @@ -262,9 +262,9 @@ 204, 400, 402 — 406, 408, 410, 411, 413, 416 и 500 — 504. Директивы <literal>rewrite</literal> выполняются последовательно, в порядке их следования в конфигурационном файле. С помощью флагов можно прекратить дальнейшую обработку директив. -Если строка замены начинается с “<literal>http://</literal>” или -“<literal>https://</literal>”, то обработка завершается и клиенту -возвращается перенаправление. +Если строка замены начинается с “<literal>http://</literal>”, +“<literal>https://</literal>” или “<literal>$scheme</literal>”, +то обработка завершается и клиенту возвращается перенаправление. </para> <para> @@ -289,7 +289,8 @@ 204, 400, 402 — 406, 408, 410, 411, 413, 416 и 500 — 504. <tag-desc> возвращает временное перенаправление с кодом 302; используется, если заменяющая строка не начинается с -“<literal>http://</literal>” или “<literal>https://</literal>”; +“<literal>http://</literal>”, “<literal>https://</literal>” +или “<literal>$scheme</literal>”; </tag-desc> <tag-name><literal>permanent</literal></tag-name>