Skip to content

Instantly share code, notes, and snippets.

@cideveloper
Created July 16, 2014 20:14
Show Gist options
  • Save cideveloper/909f7c61006f74cabe85 to your computer and use it in GitHub Desktop.
Save cideveloper/909f7c61006f74cabe85 to your computer and use it in GitHub Desktop.
Basic nginx load balancer
upstream backend {
server 192.168.0.191;
server 192.168.0.192;
}
server {
listen 80;
server_name 192.168.0.190.xip.io;
location / {
proxy_pass http://backend;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment