Answer the question
In order to leave comments, you need to log in
Can nginx direct the user to the same node?
Hello!
There is a java application that is deployed on several servers, and nginx balances requests. The bottom line is that the user gets to the same server with which he started working. Experimentally, it was found that this behavior depends on cookies (like jsessionid). That is, after cleaning, cookies are thrown to another server. Is Nginx capable of this? If so, which directive is responsible for this?
Answer the question
In order to leave comments, you need to log in
code.google.com/p/nginx-sticky-module/
nginx.org/ru/docs/http/ngx_http_upstream_module.html#ip_hash
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question