Skip to content

Instantly share code, notes, and snippets.

@maletor
Created April 12, 2010 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maletor/363442 to your computer and use it in GitHub Desktop.
Save maletor/363442 to your computer and use it in GitHub Desktop.
upstream unicorn {
server unix:/home/maletor/Sites/ellisberner/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name ellisberner.com;
root /home/maletor/Sites/ellisberner/public;
access_log /var/log/nginx/ellisberner.access.log;
location / {
try_files $uri @unicorn;
}
location @unicorn {
proxy_pass http://unicorn;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment