summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_auth_basic_module.c
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2014-05-05 11:53:10 +0400
committerAleksei Bavshin <a.bavshin@f5.com>2026-03-09 11:08:30 -0600
commitaf7137c88a87d4592d8d5879adf50b151d61e5b6 (patch)
tree921c1a296cbba4498aab7363c546e868ae7844c7 /src/http/modules/ngx_http_auth_basic_module.c
parent104734f21888cfec6994e092073f51a0d4b0fb47 (diff)
downloadnginx-af7137c88a87d4592d8d5879adf50b151d61e5b6.tar.gz
nginx-af7137c88a87d4592d8d5879adf50b151d61e5b6.tar.bz2
Sticky: added the "learn" mode.
In this mode, nginx "learns" which client uses which proxied server by analyzing headers of client requests and proxied server responses. For example, a proxied server may start sessions by issuing the "Set-Cookie" header field to set cookie 'sid' and returning clients will bring the cookie with the same name. The following configuration may be used to handle this case: upstream u1 { server 127.0.0.1:8080; server 127.0.0.1:8081; sticky learn timeout=10m zone=sess:1m create=$upstream_cookie_sid lookup=$cookie_sid; } Co-authored-by: Ruslan Ermilov <ru@nginx.com> Co-authored-by: Maxim Dounin <mdounin@mdounin.ru>
Diffstat (limited to 'src/http/modules/ngx_http_auth_basic_module.c')
0 files changed, 0 insertions, 0 deletions