Specific method:
(Recommended tutorial: nginx tutorial)
First open the nginx configuration file nginx.conf
This is the configuration of project 1. Now you need to open another project with the same domain name and different ports, as shown below:
Note: You may always be unable to access it. This is because the server www.pigaudio.com or 120.77.223.7 only has the default port 80 open, and the 8088 port is not open, so you only need to log in to your service account and add a 8088. , for example, if your server is purchased by Alibaba Cloud, you need to log in to Alibaba Cloud and add an 8088. Another problem is that if your server has the network firewall turned on, access will not work. Just turn it off.
The above is the detailed content of How to configure multiple servers in nginx. For more information, please follow other related articles on the PHP Chinese website!