How to configure multiple servers in nginx

王林
Release: 2020-09-03 16:47:04
forward
10044 people have browsed it

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template