Created
May 17, 2014 12:36
-
-
Save cfc1020/3fb13e13db647268b2b3 to your computer and use it in GitHub Desktop.
My configure file is server-site nginx for unicorn
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
server { | |
listen 80; | |
server_name www.example.com; | |
root /home/user_name/web_app/public; | |
location / { | |
try_files $uri @unicorn; | |
} | |
location @unicorn { | |
proxy_pass http://unix:/home/user_name/web_app/tmp/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 X-Forwarded-Proto $scheme; | |
proxy_set_header Host $http_host; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment