Skip to content

Instantly share code, notes, and snippets.

@lenage

lenage/myapp.conf

Created Dec 8, 2012
Embed
What would you like to do?
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
You can’t perform that action at this time.