Skip to content

Instantly share code, notes, and snippets.

@spy86
Created January 21, 2019 20:19
Show Gist options
  • Select an option

  • Save spy86/f6b458c889bd57dd58f3cc2b81fa2357 to your computer and use it in GitHub Desktop.

Select an option

Save spy86/f6b458c889bd57dd58f3cc2b81fa2357 to your computer and use it in GitHub Desktop.
NGINX HTTP Load Balancing between two or more HTTP servers.
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