serve video files with tornado web server and nginx
i need to serve large video files over the web and i set up a webserver handling upload and other stuff with to开发者_如何学运维rnado behind nginx.
what is the best way to serve those files? should i use tornado asynch to do this or is there a nginx module to do that?
i would also need offsets on those videos.
thx
In production, you probably want to serve static files from a more optimized static file server like nginx. You can configure most any web server to support these caching semantics. The nginx configuration FriendFeed use/used:
location /static/ {
root /var/friendfeed/static;
if ($query_string) {
expires max;
}
}
精彩评论