[Django]-X accel redirect not downloading the file

2👍

This issue is solved, basically i forgot to pass the proxy for my uwsgi server in nginx configuration…

location /api {
    proxy_pass http://127.0.0.1:8000/api;
}

Hopefully this helps.

Here are the complete steps which I’ve followed:

https://medium.com/@pavanskipo/how-to-serve-protected-content-using-x-accel-nginx-django-fd529e428531

Leave a comment