Home  >  Article  >  Operation and Maintenance  >  How to configure multiple servers in nginx

How to configure multiple servers in nginx

王林
王林forward
2020-09-03 16:47:049979browse

How to configure multiple servers in nginx

Specific method:

(Recommended tutorial: nginx tutorial)

First open the nginx configuration file nginx.conf

How to configure multiple servers in nginx

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:

How to configure multiple servers in nginx

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete