# HG changeset patch # User Ruslan Ermilov # Date 1482349936 -10800 # Node ID 2f851f71ff0816783b76200403cfb172ebbcc883 # Parent f3f268ab357361413f887156468b97184051f224 Documented $scheme support in the "rewrite" directive. diff -r f3f268ab3573 -r 2f851f71ff08 xml/en/docs/http/ngx_http_rewrite_module.xml --- a/xml/en/docs/http/ngx_http_rewrite_module.xml Wed Dec 21 18:29:10 2016 +0300 +++ b/xml/en/docs/http/ngx_http_rewrite_module.xml Wed Dec 21 22:52:16 2016 +0300 @@ -10,7 +10,7 @@ + rev="7">
@@ -264,9 +264,9 @@ The rewrite 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 “http://” -or “https://”, the processing stops and the -redirect is returned to a client. +If a replacement string starts with “http://”, +“https://”, or “$scheme”, +the processing stops and the redirect is returned to a client. @@ -291,7 +291,8 @@ returns a temporary redirect with the 302 code; used if a replacement string does not start with -“http://” or “https://”; +“http://”, “https://”, +or “$scheme”; permanent diff -r f3f268ab3573 -r 2f851f71ff08 xml/ru/docs/http/ngx_http_rewrite_module.xml --- a/xml/ru/docs/http/ngx_http_rewrite_module.xml Wed Dec 21 18:29:10 2016 +0300 +++ b/xml/ru/docs/http/ngx_http_rewrite_module.xml Wed Dec 21 22:52:16 2016 +0300 @@ -10,7 +10,7 @@ + rev="7">
@@ -262,9 +262,9 @@ Директивы rewrite выполняются последовательно, в порядке их следования в конфигурационном файле. С помощью флагов можно прекратить дальнейшую обработку директив. -Если строка замены начинается с “http://” или -“https://”, то обработка завершается и клиенту -возвращается перенаправление. +Если строка замены начинается с “http://”, +“https://” или “$scheme”, +то обработка завершается и клиенту возвращается перенаправление. @@ -289,7 +289,8 @@ возвращает временное перенаправление с кодом 302; используется, если заменяющая строка не начинается с -“http://” или “https://”; +“http://”, “https://” +или “$scheme”; permanent