search

Home  >  Q&A  >  body text

Asking how to forward the addresses of multiple servers on nginx and solve cross-domain problems

Ask how to forward the addresses of multiple servers on nginx and solve cross-domain problems

漂亮男人漂亮男人2791 days ago568

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 17:31:41

    There are relevant configurations in the nginx configuration file
    The http part can be configured with upstream
    upstream phpserver {
    server 127.0.0.1:9000 weight=10;
    server x.x.x.x.:xx weight=10;
    server x.x.x.x.:xx weight=10;
    server x.x.x.x.:xx weight=10;
    }
    Just configure the server IP and service port

    reply
    0
  • Cancelreply