Skip to content

Instantly share code, notes, and snippets.

@Mozartted
Created May 23, 2018 04:56
Show Gist options
  • Save Mozartted/7bd8164b3b5743c13cdf3b8f1786c355 to your computer and use it in GitHub Desktop.
Save Mozartted/7bd8164b3b5743c13cdf3b8f1786c355 to your computer and use it in GitHub Desktop.
# http context
upstream backend_hosts {
least_conn;
server host1.example.com;
server host2.example.com;
server host3.example.com;
}
# next we set up our server
server {
listen 80;
server_name example.com;
location /proxy-me {
proxy_pass http://backend_hosts;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment