When NGINX load balancing starts a server node in the background, it can be accessed normally. When starting two application service nodes in the background, it can only access the login interface. After successful login, it cannot go to the next page. Please analyze and answer
ringa_lee
Has the background application session been shared? Or is the ngxin configuration session sticky?
My guess is:I just logged in to the first one, but when I jumped, I jumped to another one. At this time, the second one did not have the session of the first one, so the application thought that I was not logged in and returned to the login page
Can even two back-end application servers be accessed individually? Are all kinds of things OK?
What is the error code when the jump cannot be made? Is it the error page given by nginx or the error page of the backend APP?
session
同步的問(wèn)題吧。請(qǐng)?jiān)?upstream
配置段內(nèi)加入 ip_hash
Configuration~