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.

For reference, FileStruct is a python module we authored that makes it easy
to receive, store, manage, and serve a large number of file uploads.
https://github.com/appcove/FileStruct

Thanks!
Jason

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to