Created
September 14, 2016 07:11
-
-
Save kaqfa/11f3067067b1b8b3c0d0b2a6e039be7c 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 80; | |
server_name yourdomain.net; | |
location /static { | |
alias /home/youruser/webapp/staticfiles; | |
} | |
location / { | |
sub_filter_types text/plain application/json; | |
sub_filter "localhost:8000" "$server_name"; | |
sub_filter_once off; | |
proxy_pass http://localhost:8000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment