# HG changeset patch # User Yaroslav Zhuravlev # Date 1606307952 0 # Node ID bd676d1da9573695557dd39e6de305b95e27941b # Parent 2b71a9ef37c1f45481584d7a3f564786115c2582 Clarified behavior of multiple proxy_cookie_ directives. diff --git a/xml/en/docs/http/ngx_http_proxy_module.xml b/xml/en/docs/http/ngx_http_proxy_module.xml --- a/xml/en/docs/http/ngx_http_proxy_module.xml +++ b/xml/en/docs/http/ngx_http_proxy_module.xml @@ -10,7 +10,7 @@ + rev="71">
@@ -867,6 +867,11 @@ can be specified on the same level: proxy_cookie_domain localhost example.org; proxy_cookie_domain ~\.([a-z]+\.[a-z]+)$ $1; +If several directives can be applied to the cookie, +the first matching directive will be chosen. + + + The off parameter cancels the effect of the proxy_cookie_domain directives inherited from the previous configuration level. @@ -916,6 +921,8 @@ can be specified on the same configurati proxy_cookie_flags one httponly; proxy_cookie_flags ~ nosecure samesite=strict; +If several directives can be applied to the cookie, +the first matching directive will be chosen. In the example, the httponly flag is added to the cookie one, for all other cookies @@ -984,6 +991,11 @@ can be specified on the same level: proxy_cookie_path /one/ /; proxy_cookie_path / /two/; +If several directives can be applied to the cookie, +the first matching directive will be chosen. + + + The off parameter cancels the effect of the proxy_cookie_path directives inherited from the previous configuration level. @@ -1709,6 +1721,12 @@ proxy_redirect default; proxy_redirect http://localhost:8000/ /; proxy_redirect http://www.example.com/ /; +If several directives can be applied to +the header fields of a proxied server response, +the first matching directive will be chosen. + + + The off parameter cancels the effect of the proxy_redirect directives inherited from the previous configuration level. diff --git a/xml/ru/docs/http/ngx_http_proxy_module.xml b/xml/ru/docs/http/ngx_http_proxy_module.xml --- a/xml/ru/docs/http/ngx_http_proxy_module.xml +++ b/xml/ru/docs/http/ngx_http_proxy_module.xml @@ -10,7 +10,7 @@ + rev="71">
@@ -869,6 +869,11 @@ proxy_cookie_domain ~\.(?P<sl_domain& proxy_cookie_domain localhost example.org; proxy_cookie_domain ~\.([a-z]+\.[a-z]+)$ $1; +Если к куке могут быть применены несколько директив, +будет выбрана первая из них. + + + Параметр off отменяет действие унаследованных с предыдущего уровня конфигурации директив proxy_cookie_domain. @@ -919,6 +924,8 @@ proxy_cookie_domain ~\.([a-z]+\.[a-z]+)$ proxy_cookie_flags one httponly; proxy_cookie_flags ~ nosecure samesite=strict; +Если к куке могут быть применены несколько директив, +будет выбрана первая из них. В данном примере флаг httponly добавляется к куке one, для остальных кук @@ -986,6 +993,11 @@ proxy_cookie_path ~*^/user/([^/]+) /u/$1 proxy_cookie_path /one/ /; proxy_cookie_path / /two/; +Если к куке могут быть применены несколько директив, +будет выбрана первая из них. + + + Параметр off отменяет действие унаследованных с предыдущего уровня конфигурации директив proxy_cookie_path. @@ -1713,6 +1725,12 @@ proxy_redirect default; proxy_redirect http://localhost:8000/ /; proxy_redirect http://www.example.com/ /; +Если к полям заголовка в ответе проксируемого сервера +могут быть применены несколько директив, +будет выбрана первая из них. + + + Параметр off отменяет действие унаследованных с предыдущего уровня конфигурации директив proxy_redirect.