Skip to content

Instantly share code, notes, and snippets.

@adunkman
Created May 14, 2012 21:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adunkman/2697638 to your computer and use it in GitHub Desktop.
Save adunkman/2697638 to your computer and use it in GitHub Desktop.
Load balancing across applications with nginx
events {
worker_connections 1024;
}
http {
upstream appname {
server 127.0.0.1:3000;
server 127.0.0.1:3001;
}
server {
listen 80;
location /appname {
proxy_pass http://appname/;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment