Analysis of NGINX Proxy Mode

In the daily work process, the nginx server is often used as some proxy. The following uses are briefly summarized:

  1. Solve js cross-domain access, use nginx server for service distribution after a unified gateway, distribute different locations to different systems, so that the entire service system uses a unified domain name access;
  2. Load balancing. When the system traffic is higher than the carrying capacity of a single server, using load balancing seems to be the most convenient solution. Using the reverse proxy function of nginx, multiple services are mounted on the backend to achieve load balancing. In addition to the default rotation training strategy, nginx also has strategies such as IPhash and weight, which are easy to use and much lower in cost than using F5;
  3. As a forward network proxy, in a general enterprise-level network, the restrictions on access rights are very strict, and using nginx as a forward proxy can easily use a server with export rights as a unified network access exit, which can make network rights The structure is relatively simple and clear.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326442775&siteId=291194637