Skip to content

Instantly share code, notes, and snippets.

View edjames's full-sized avatar

Ed James edjames

View GitHub Profile
@edjames
edjames / nginx_rails_3_1
Created February 7, 2012 11:12 — forked from shapeshed/nginx_rails_3_1
Nginx Config for Rails 3.1 with Unicorn and Asset Pipeline
upstream app {
server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name www.app.com;
rewrite ^/(.*) http://app.com/$1 permanent;
}
server {