开发者

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;
    }
 }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜