Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Nginx config with Unicorn and Rails 3.1
upstream example {
server unix:/home/example/shared/example.sock fail_timeout=0;
server {
listen 80;
client_max_body_size 100M;
root /home/example/current/public;
access_log /home/example/shared/log/access.log main;
error_log /home/example/shared/log/error.log info;
# This is a ruby application, deny other common types.
location ~ \.(php|asp|aspx|jsp|cfm|dll)$ {
deny all;
location / {
include /etc/nginx/conf/proxy.conf;
if (!-f $request_filename) {
proxy_pass http://example;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment