Skip to content

Instantly share code, notes, and snippets.

@seanhess
Created October 19, 2011 20:03
Show Gist options
  • Save seanhess/1299501 to your computer and use it in GitHub Desktop.
Save seanhess/1299501 to your computer and use it in GitHub Desktop.
nginx config
# testing nginx as a balancer
user nginx nginx;
worker_processes 4;
worker_rlimit_nofile 30000;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 4024;
use epoll;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
upstream fakeapp {
server 10.183.4.80:1337;
server 10.183.4.149:1337;
server 10.183.8.252:1337;
server 10.183.8.253:1337;
}
server {
listen 1555;
server_name _;
# Node - Pass it all off
location / {
proxy_set_header Host $http_host;
proxy_pass http://fakeapp;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment