Skip to content

Instantly share code, notes, and snippets.

@d6rkaiz
Created December 13, 2010 17:05
Show Gist options
  • 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