Skip to content

Instantly share code, notes, and snippets.

@d6rkaiz d6rkaiz/nginx
Created Dec 13, 2010

Embed
What would you like to do?
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
You can’t perform that action at this time.