# HG changeset patch # User Yaroslav Zhuravlev # Date 1425549666 -10800 # Node ID 627a9309011c6dd39afb83bad6b39da77f491777 # Parent 08242a0abf115a4f6026fc6c110e2cbb9ceee60b Renamed cookie in the example of the sticky directive. diff --git a/xml/en/docs/http/ngx_http_upstream_module.xml b/xml/en/docs/http/ngx_http_upstream_module.xml --- a/xml/en/docs/http/ngx_http_upstream_module.xml +++ b/xml/en/docs/http/ngx_http_upstream_module.xml @@ -10,7 +10,7 @@ + rev="41">
@@ -1018,14 +1018,14 @@ upstream backend { server backend2.example.com:8081; sticky learn - create=$upstream_cookie_sessionid - lookup=$cookie_sessionid + create=$upstream_cookie_examplecookie + lookup=$cookie_examplecookie zone=client_sessions:1m; } In the example, the upstream server creates a session by setting the -cookie “SESSIONID” in the response. +cookie “EXAMPLECOOKIE” in the response. Further requests with this cookie will be passed to the same server. If the server cannot process the request, the new server is selected as if the client has not been bound yet. diff --git a/xml/ru/docs/http/ngx_http_upstream_module.xml b/xml/ru/docs/http/ngx_http_upstream_module.xml --- a/xml/ru/docs/http/ngx_http_upstream_module.xml +++ b/xml/ru/docs/http/ngx_http_upstream_module.xml @@ -10,7 +10,7 @@ + rev="41">
@@ -1020,14 +1020,14 @@ upstream backend { server backend2.example.com:8081; sticky learn - create=$upstream_cookie_sessionid - lookup=$cookie_sessionid + create=$upstream_cookie_examplecookie + lookup=$cookie_examplecookie zone=client_sessions:1m; } В примере выше сервер группы создаёт сессию путём установки -куки “SESSIONID” в своём ответе. +куки “EXAMPLECOOKIE” в своём ответе. Последующие запросы с этой кукой будут передаваться на этот же сервер. Если сервер не может обработать запрос, выбирается новый сервер как если бы клиент не имел привязки к серверу.