Created
October 19, 2011 20:03
-
-
Save seanhess/1299501 to your computer and use it in GitHub Desktop.
nginx config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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