Skip to content

Instantly share code, notes, and snippets.

@hgkmail
Created July 18, 2018 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hgkmail/65dcd069be6186b744eff83e6bbcec55 to your computer and use it in GitHub Desktop.
Save hgkmail/65dcd069be6186b744eff83e6bbcec55 to your computer and use it in GitHub Desktop.
nginx upstream example
upstream backend {
server backend1.example.com weight=5;
server backend2.example.com:8080;
server unix:/tmp/backend3;
server backup1.example.com:8080 backup;
server backup2.example.com:8080 backup;
}
server {
location / {
proxy_pass http://backend;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment