Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_upstream_module.xml @ 1544:627a9309011c
Renamed cookie in the example of the sticky directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 05 Mar 2015 13:01:06 +0300 |
parents | 08242a0abf11 |
children | ed420c318557 |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_upstream_module.xml Tue Aug 04 13:37:33 2015 +0300 +++ b/xml/en/docs/http/ngx_http_upstream_module.xml Thu Mar 05 13:01:06 2015 +0300 @@ -10,7 +10,7 @@ <module name="Module ngx_http_upstream_module" link="/en/docs/http/ngx_http_upstream_module.html" lang="en" - rev="40"> + rev="41"> <section id="summary"> @@ -1018,14 +1018,14 @@ 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; } </example> In the example, the upstream server creates a session by setting the -cookie “<literal>SESSIONID</literal>” in the response. +cookie “<literal>EXAMPLECOOKIE</literal>” 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.