search

Home  >  Q&A  >  body text

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.


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_leeringa_lee2755 days ago821

reply all(3)I'll reply

  • 漂亮男人

    漂亮男人2017-05-16 17:29:00

    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

    reply
    0
  • 迷茫

    迷茫2017-05-16 17:29:00

    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?

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 17:29:00

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

    reply
    0
  • Cancelreply