Created
January 3, 2013 10:46
-
-
Save moretea/4442543 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
| # service nginx configtest | |
| Testing nginx configuration: nginx: [emerg] unknown directive " " in /etc/nginx/sites-enabled/paagrank:5 | |
| nginx: configuration file /etc/nginx/nginx.conf test failed |
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:/var/www/paagrank/shared/sockets/nginx fail_timeout=0; | |
| } | |
| server { | |
| listen 80 default deferred; | |
| server_name paagrank.springest.biz; | |
| root /var/www/paagrank/current/public; | |
| try_files $uri/index.html $uri @app; | |
| error_page 500 502 503 504 /500.html; | |
| location @app{ | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto $scheme; | |
| proxy_set_header Host $http_host; | |
| proxy_redirect off; | |
| proxy_pass http://unicorn; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment