Skip to content

Instantly share code, notes, and snippets.

@kaqfa
Created September 14, 2016 07:11
Show Gist options
  • Save kaqfa/11f3067067b1b8b3c0d0b2a6e039be7c to your computer and use it in GitHub Desktop.
Save kaqfa/11f3067067b1b8b3c0d0b2a6e039be7c to your computer and use it in GitHub Desktop.
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