Skip to content

Instantly share code, notes, and snippets.

@d6rkaiz
Created December 13, 2010 17:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d6rkaiz/739230 to your computer and use it in GitHub Desktop.
Save d6rkaiz/739230 to your computer and use it in GitHub Desktop.
nginx+unicorn
server {
listen 80;
server_name _;
access_log /var/log/nginx/access.log;
root /var/www/default/public;
location / {
try_files $uri/index.html @unicorn;
}
location @unicorn {
proxy_pass http://unicorn;
}
}
upstream unicorn {
server unix:/tmp/unicorn.socket;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment