When NGINX load balancing starts a server node in the background, it can be accessed normally. When starting the two application service nodes in the background, it can only access the login interface. After successful login, it cannot go to the next page.
ringa_lee
ringa_lee 2017-05-16 17:27:00
0
3
780

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
ringa_lee

ringa_lee

reply all(3)
漂亮男人

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?

过去多啦不再A梦

session 同步的问题吧。请在 upstream 配置段内加入 ip_hash Configuration~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!