Skip to content

Instantly share code, notes, and snippets.

@kuon
Created December 7, 2010 10:41
Show Gist options
  • Save kuon/731659 to your computer and use it in GitHub Desktop.
Save kuon/731659 to your computer and use it in GitHub Desktop.
server {
listen 80;
client_max_body_size 50M;
server_name a3.walking-the-edit.net;
location / {
root /we/cms/current/public;
try_files /system/maintenance.html $uri $uri/index.html $uri.html @unicorn;
}
location @unicorn {
proxy_pass http://unix:/we/cms/shared/sockets/unicorn.sock;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment