Home  >  Q&A  >  body text

How nginx proxy redirects websites between multiple domain names

There is such a website. The login interface is domain name A. After successful login, it will jump to another domain name B.
If you directly access the B domain name, it will jump to the A domain name without logging in. If you have already logged in, you are still in domain name B.

漂亮男人漂亮男人2691 days ago813

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-06-06 09:56:24

    It is recommended not to use Nginx configuration, it will be better to implement it on the front end

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-06 09:56:24

    Use business code to implement it to determine whether you are logged in. If you are not logged in, initiate a redirect. It is a very mature solution.

    reply
    0
  • Cancelreply