Created
April 12, 2010 10:42
-
-
Save maletor/363442 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream unicorn { | |
server unix:/home/maletor/Sites/ellisberner/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name ellisberner.com; | |
root /home/maletor/Sites/ellisberner/public; | |
access_log /var/log/nginx/ellisberner.access.log; | |
location / { | |
try_files $uri @unicorn; | |
} | |
location @unicorn { | |
proxy_pass http://unicorn; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $host; | |
proxy_redirect off; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment