多次302Nginx反代请教 只看楼主

想用家里的盒子Nginx反代浙江移动的IPTV源

当前访问 http://hwltc.tv.cdn.zj.chinamobile.com/PLTV/88888888/224/3221236222/index.m3u8 会302重定向到 http://[2409:8087:2801:21::74]/hwltc.tv.cdn.zj.chinamobile.com/hwltc.tv.cdn.zj.chinamobile.com/PLTV/88888888/224/3221236222/index.m3u8  (这里的[2409:8087:2801:21::74]非固定)

访问 http://[2409:8087:2801:21::74]/hwltc.tv.cdn.zj.chinamobile.com/hwltc.tv.cdn.zj.chinamobile.com/PLTV/88888888/224/3221236222/index.m3u8 会302重定向到 http://39.136.5.25/wh7f454c46tw2560793237_333550258/hwltc.tv.cdn.zj.chinamobile.com/PLTV/88888888/224/3221236222/index.m3u8  (这里的39.136.5.25非固定)

最后的http://39.136.5.25/wh7f454c46tw2560793237_333550258/hwltc.tv.cdn.zj.chinamobile.com/PLTV/88888888/224/3221236222/index.m3u8 才是IPTV的地址

Nginx规则应该怎么写呢,用几个AI写的都有问题,不能处理第二次302
  • 2# heihai
  • 2024-12-20 17:31:25
2-3个nginx顺着跳?



它们什么都知道,它们本就是故意的
我什么也做不了
index.m3u8里还有一堆地址。那个里面的地址也要反代。