comparison 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
comparison
equal deleted inserted replaced
1543:08242a0abf11 1544:627a9309011c
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9 9
10 <module name="Module ngx_http_upstream_module" 10 <module name="Module ngx_http_upstream_module"
11 link="/en/docs/http/ngx_http_upstream_module.html" 11 link="/en/docs/http/ngx_http_upstream_module.html"
12 lang="en" 12 lang="en"
13 rev="40"> 13 rev="41">
14 14
15 <section id="summary"> 15 <section id="summary">
16 16
17 <para> 17 <para>
18 The <literal>ngx_http_upstream_module</literal> module 18 The <literal>ngx_http_upstream_module</literal> module
1016 upstream backend { 1016 upstream backend {
1017 server backend1.example.com:8080; 1017 server backend1.example.com:8080;
1018 server backend2.example.com:8081; 1018 server backend2.example.com:8081;
1019 1019
1020 sticky learn 1020 sticky learn
1021 create=$upstream_cookie_sessionid 1021 create=$upstream_cookie_examplecookie
1022 lookup=$cookie_sessionid 1022 lookup=$cookie_examplecookie
1023 zone=client_sessions:1m; 1023 zone=client_sessions:1m;
1024 } 1024 }
1025 </example> 1025 </example>
1026 1026
1027 In the example, the upstream server creates a session by setting the 1027 In the example, the upstream server creates a session by setting the
1028 cookie “<literal>SESSIONID</literal>” in the response. 1028 cookie “<literal>EXAMPLECOOKIE</literal>” in the response.
1029 Further requests with this cookie will be passed to the same server. 1029 Further requests with this cookie will be passed to the same server.
1030 If the server cannot process the request, the new server is 1030 If the server cannot process the request, the new server is
1031 selected as if the client has not been bound yet. 1031 selected as if the client has not been bound yet.
1032 </para> 1032 </para>
1033 1033