How to setup an Nginx load balancer example
出处:
www.theserverside.com
作者:
Cameron McKenzie
To setup Nginx as a load balancer for backend servers, follow these steps:1. Open the Nginx configuration file with elevated rights. 2. Define an upstream element and list each node in your backend cluster. 3. Map a URI to the upstream cluster with a proxy_pass location setting. 4. Restart the Nginx server to incorporate the config changes. 5. Verify successful configuration of the Nginx load balancer setup