Created
December 8, 2012 17:42
-
-
Save lenage/4241137 to your computer and use it in GitHub Desktop.
This file contains 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 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