Hello All,
We are using nginx in front of apache+mod_wsgi. Authenticated file uploads are stored on the filesystem in a FileStruct directory structure
Requests for these files go through a URI like /serve/video/1234
mod_wsgi handles the request, the python application authenticates it (via session cookie), and returns an X-Accel-Redirect header to nginx, which serves the file directly.
We hooked up a video player for the first time today with large (GB) video files. To my delight, I found that nginx seamlessly handled the Range headers and allowed the user to jump around the video.
I thought I would post this for anyone who wasn't aware or wasn't sure that this would work out of the box.
Thanks!
Jason