Skip to content

Instantly share code, notes, and snippets.

@hgkmail
Created July 18, 2018 19:25
Embed
What would you like to do?
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