Created
March 9, 2009 01:38
-
-
Save grantmichaels/76044 to your computer and use it in GitHub Desktop.
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
user deploy; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} #events | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
server_names_hash_bucket_size 64; | |
# configure log format | |
log_format main '$remote_addr - $remote_user [$time_local] ' | |
'"$request" $status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
#main error.log | |
error_log /usr/local/nginx/logs/error.log; | |
sendfile on; | |
tcp_nopush on; | |
#keepalive_timeout 65; | |
tcp_nodelay off; | |
gzip on; | |
gzip_comp_level 2; | |
gzip_proxied any; | |
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml | |
application/xml+rss text/javascript; | |
upstream mochiweb1 { | |
server 127.0.0.1:8000; | |
} #upstream | |
server { | |
listen 69.56.251.108:80 default deferred; | |
root /home/deploy/grantmichaels/priv/www; | |
server_name www.grantmichaels.com grantmichaels.com; | |
proxy_pass http://mochiweb1; | |
break; | |
} #server | |
upstream mochiweb2 { | |
server 127.0.0.1:4000; | |
} #upstream | |
server { | |
listen 69.56.251.108:80 default deferred; | |
root /home/deploy/plumbingholes/priv/www; | |
server_name www.grantmichaels.com grantmichaels.com; | |
proxy_pass http://mochiweb2; | |
break; | |
} #server | |
} #http |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment