Created
January 21, 2019 20:19
-
-
Save spy86/f6b458c889bd57dd58f3cc2b81fa2357 to your computer and use it in GitHub Desktop.
NGINX HTTP Load Balancing between two or more HTTP servers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream backend { | |
| server 10.10.12.45:80 weight=1; | |
| server app.example.com:80 weight=2; | |
| } | |
| server { | |
| location / { | |
| proxy_pass http://backend; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment