Skip to content

Instantly share code, notes, and snippets.

@lenage
Created December 8, 2012 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lenage/4241137 to your computer and use it in GitHub Desktop.
Save lenage/4241137 to your computer and use it in GitHub Desktop.
upstream myapp {
server 127.0.0.1:5000;
}
server {
listen 80;
server_name llbire.com www.llbire.com;
location @myapp {
proxy_pass http://myapp;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_intercept_errors on;
proxy_set_header Host $http_host;
}
location / {
try_files $uri @myapp;
}
root /home/ubuntu/quicklisp/local-projects/myapp/static;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment