Skip to content

Instantly share code, notes, and snippets.

@moretea
Created January 3, 2013 10:46
Show Gist options
  • Select an option

  • Save moretea/4442543 to your computer and use it in GitHub Desktop.

Select an option

Save moretea/4442543 to your computer and use it in GitHub Desktop.
# 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
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