Created
February 1, 2013 17:39
-
-
Save EdwardIII/4692815 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
server { | |
listen 9095 default; | |
client_max_body_size 4G; | |
server_name 109.88.33.22; | |
keepalive_timeout 50; | |
# path for static files | |
root /home/edward/Projects/MyProject/public; | |
location / { | |
# checks for file, if not found proxy to app | |
try_files $uri @proxy_to_app; | |
} | |
location @proxy_to_app { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_pass http://my-django-server-host.co.uk:9091; | |
} | |
error_page 500 502 503 504 /500.html; | |
location = /500.html { | |
root /home/edward/Projects/MyProject/public; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment