Skip to content

Instantly share code, notes, and snippets.

@nsbingham
Created October 22, 2013 15:09
Show Gist options
  • Save nsbingham/7102409 to your computer and use it in GitHub Desktop.
Save nsbingham/7102409 to your computer and use it in GitHub Desktop.
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/log/nginx/nginx.pid;
events {
worker_connections 1024;
}
http {
gzip on;
upstream balancer {
sticky;
server modernie.cloudapp.net weight=2;
server modernie-beta.cloudapp.net;
}
server {
listen 80;
access_log /var/log/nginx/balancer.access.log;
location / {
proxy_pass http://balancer;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
error_page 404 /404.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment