Skip to content

Instantly share code, notes, and snippets.

@avinashseth
Created January 1, 2020 02:12
Show Gist options
  • Save avinashseth/295ffb61c4096305c14859bbc94373d2 to your computer and use it in GitHub Desktop.
Save avinashseth/295ffb61c4096305c14859bbc94373d2 to your computer and use it in GitHub Desktop.
http {
upstream avinash {
server 123.123.123.123;
server 124.1.124.125;
}
# This server accepts all traffic to port 80 and passes it to the upstream.
# Notice that the upstream name and the proxy_pass need to match.
server {
listen 80;
location / {
proxy_pass http://avinash;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment