[Fixed]-Django: serve static section of a web-app

1👍

server  {
  server_name yourdomain.com;
  location /blog{
     root /path/to/static/html;
  }

  location /{
     # your django app configuration
     proxy_pass http://localhost:8000$request_uri;
     # other configurations
  }
}

Leave a comment