Skip to content

Instantly share code, notes, and snippets.

Created Dec 13, 2010
What would you like to do?
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