range

来源:互联网 发布:景甜到底什么来头知乎 编辑:程序博客网 时间:2024/06/05 22:50
 proxy_cache_path /tmp/pxy keys_zone=one:10m;


    server {
        listen 8001;
        location / {
            root /data/;
        }
        location ~ .*ts {
            proxy_cache one;
            proxy_cache_valid any 30y;
            proxy_cache_key "$uri:$arg_start-$arg_end";
            proxy_set_header Range bytes=$arg_start-$arg_end;
            proxy_cache_min_uses 5;
            proxy_cache_use_stale updating;
            add_header X-Cached $upstream_cache_status;
            root /data/;
            error_log  logs/error.log debug;
            access_log  logs/zz.log   zzlog;
            proxy_pass http://localhost:8000;
        }
    }
    server {
        listen 8000;


        location / {


            root /data/;
        }
   }
0 0