Ask how to forward the addresses of multiple servers on nginx and solve cross-domain problems
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