.Net Core WebAPI deploy a multi-server load balancing configuration Nginx

Download Nginx package:

https://nginx.org/en/download.html

First, download the package Nginx

Note: The download path must be in English, not to the Chinese;

Start Nginx:

Nginx open just downloaded package, and then click nginx.exe, then nginx will open, then we can start to see progress in the process nginx.exe Task Manager.

Interface Test:

  We have three WebAPI projects under the first look

Internal project is the same, in order to distinguish access interface, made some distinction

 

The following projects were started, corresponding to good port:

 

 

With this project has been started, take a look at the interface is normal to go visit

 

OK normal visit ~

We continue with the operation

 

Configuration Nginx:

Find the configuration file as follows

 

Thus configured, the next visit to see results 8080

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/zousc/p/12436898.html