I'll be writing a blog post about this soon when John wrote is right on though it took me a while to wrap my mind around it
the nginx location + nginx alias + url passed = file to be served so to get file /home/me/web/example.com/download/file.pdf location ^~ /download { internal; root /home/me/web/example.com/ } would be accessed via: response['X-Accel-Redirect'] = '/download/file.pdf' return response --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---