Forums

nginx byte-range support

Is the nginx server configured with "max_ranges 0" or not? So is it possible to serve http requests with byte-range?

It doesn't look like it, no. Unless it's the default setting... What's it for, resuming downloads? Maybe it's something we could look at changing...

Have you tried it? Is anything else needed apart from some nginx config?

I know this is surfacing an old thread, but I'm facing a similar problem.

It seems Safari makes ranged requests, the default media file serving for my django app doesn't seem to support byte-ranges serving. Is it possible to allow this through changing the nginx server configuration?

I think the problem here is actually uWSGI rather than nginx -- just to check, are you using the static files system on the "Web" tab for your media files?

I was using the static files system for my media files. I've now moved the static and media file serving to be from AWS s3 and it all works as S3 supports ranged requests, so I'm all sorted. If anyone else faces this problem, here's a good guide: https://www.caktusgroup.com/blog/2014/11/10/Using-Amazon-S3-to-store-your-Django-sites-static-and-media-files/

Thanks for posting that! Sounds like a good workaround.