# HG changeset patch # User Yaroslav Zhuravlev # Date 1482783926 -10800 # Node ID 3685d90e133e9d3b8e8127bb9e7167c0fdb40871 # Parent 127ae107e5a9da72686cb3b1eae702584baa04c9 Documented the "absolute_redirect" directive. diff -r 127ae107e5a9 -r 3685d90e133e xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml Mon Dec 26 19:38:06 2016 +0300 +++ b/xml/en/docs/http/ngx_http_core_module.xml Mon Dec 26 23:25:26 2016 +0300 @@ -10,10 +10,30 @@ + rev="65">
+ +on | off +on +http +server +location +1.11.8 + + +If disabled, redirects issued by nginx will be relative. + + + +See also +and directives. + + + + + on | @@ -1930,7 +1950,8 @@ location -Enables or disables specifying the port in redirects issued by nginx. +Enables or disables specifying the port in +absolute redirects issued by nginx. @@ -2461,8 +2482,8 @@ Enables or disables the use of the primary server name, specified by the - -directive, in redirects issued by nginx. + directive, +in absolute redirects issued by nginx. When the use of the primary server name is disabled, the name from the
Host
request header field is used. If this field is not present, the IP address of the server is used. diff -r 127ae107e5a9 -r 3685d90e133e xml/ru/docs/http/ngx_http_core_module.xml --- a/xml/ru/docs/http/ngx_http_core_module.xml Mon Dec 26 19:38:06 2016 +0300 +++ b/xml/ru/docs/http/ngx_http_core_module.xml Mon Dec 26 23:25:26 2016 +0300 @@ -10,10 +10,30 @@ + rev="65">
+ +on | off +on +http +server +location +1.11.8 + + +Если запрещено, то перенаправления выдаваемые nginx'ом, будут относительные. + + + +См. также директивы . + + + + + on | @@ -1927,7 +1947,9 @@ location -Разрешает или запрещает указывать порт в перенаправлениях, выдаваемых nginx’ом. +Разрешает или запрещает указывать порт в +абсолютных +перенаправлениях, выдаваемых nginx’ом. @@ -2459,8 +2481,9 @@ location -Разрешает или запрещает использовать в перенаправлениях, выдаваемых nginx’ом, -основное имя сервера, задаваемое директивой +Разрешает или запрещает использовать в +абсолютных перенаправлениях, +выдаваемых nginx’ом, основное имя сервера, задаваемое директивой . Если использование основного имени сервера запрещено, то используется имя, указанное в поле
Host
заголовка запроса.