您好,
我检查了host没有多余内容,并且试了百度阿里和114的dns都出现了偶尔会跳转localhost的问题。
firefox浏览器,video控件请求如下
{"GET":{"scheme":"http","host":"lc-boaaxnm8.cn-e1.lcfile.com","filename":"/xxxxxxxxxxxxxxx.mp4","remote":{"Address":"101.227.0.136:80"}}}
Header
GET /xxxxxxxxxxxxxxx.mp4 HTTP/1.1
Host: lc-boaaxnm8.cn-e1.lcfile.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Accept: video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5
Accept-Language: en-US,en;q=0.5
Range: bytes=0-
Connection: keep-alive
Referer: http://xxxx/xxxxxxx/
Pragma: no-cache
Cache-Control: no-cache
返回如下
HTTP/1.1 302 Found
Connection: close
Cache-Control: no-cache
Content-length: 0
Location: http://localhost
Refresh: 1
视频由ffmpeg libx264编码 mp4封装
Video: h264 (High) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 95 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
补充:即使使用wget也会出现同样的问题,另外这个问题用户也遇到了,不想是我这里的配置问题。
时间 2020-08-19T21:16:22.668+08:00
url http://lc-boaaxnm8.cn-e1.lcfile.com/5713a814aec3b6a545e6.mp4
ip 116.235.214.246
{ "log": { "version": "1.2", "creator": { "name": "Firefox", "version": "79.0" }, "browser": { "name": "Firefox", "version": "79.0" }, "pages": [ { "startedDateTime": "2020-08-19T21:16:22.555+08:00", "id": "page_1", "title": "Problem loading page", "pageTimings": { "onContentLoad": 140, "onLoad": -1 } } ], "entries": [ { "pageref": "page_1", "startedDateTime": "2020-08-19T21:16:22.555+08:00", "request": { "bodySize": 0, "method": "GET", "url": "http://lc-boaaxnm8.cn-e1.lcfile.com/e7cbdbcdb2000ac767a4.mp4", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Host", "value": "lc-boaaxnm8.cn-e1.lcfile.com" }, { "name": "User-Agent", "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0" }, { "name": "Accept", "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" }, { "name": "Accept-Language", "value": "en-US,en;q=0.5" }, { "name": "Accept-Encoding", "value": "gzip, deflate" }, { "name": "Connection", "value": "keep-alive" }, { "name": "Upgrade-Insecure-Requests", "value": "1" } ], "cookies": [], "queryString": [], "headersSize": 371 }, "response": { "status": 302, "statusText": "Found", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Connection", "value": "close" }, { "name": "Cache-Control", "value": "no-cache" }, { "name": "Content-length", "value": "0" }, { "name": "Location", "value": "http://localhost" }, { "name": "Refresh", "value": "1" } ], "cookies": [], "content": { "mimeType": "", "size": 0, "encoding": "base64", "comment": "Response bodies are not included." }, "redirectURL": "http://localhost", "headersSize": 125, "bodySize": 125 }, "cache": {}, "timings": { "blocked": 0, "dns": 0, "connect": 0, "ssl": 0, "send": 0, "wait": 12, "receive": 0 }, "time": 12, "_securityState": "insecure", "serverIPAddress": "218.92.0.58", "connection": "80" }, { "pageref": "page_1", "startedDateTime": "2020-08-19T21:16:22.570+08:00", "request": { "bodySize": 0, "method": "GET", "url": "http://localhost/", "httpVersion": "", "headers": [ { "name": "Host", "value": "localhost" }, { "name": "User-Agent", "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0" }, { "name": "Accept", "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" }, { "name": "Accept-Language", "value": "en-US,en;q=0.5" }, { "name": "Accept-Encoding", "value": "gzip, deflate" }, { "name": "Connection", "value": "keep-alive" }, { "name": "Upgrade-Insecure-Requests", "value": "1" } ], "cookies": [], "queryString": [], "headersSize": 328 }, "response": { "status": 0, "statusText": "", "httpVersion": "", "headers": [], "cookies": [], "content": { "mimeType": "", "size": 0, "encoding": "base64", "text": "" }, "redirectURL": "", "bodySize": 0 }, "cache": {}, "timings": { "blocked": 0, "dns": 0, "connect": 0, "ssl": 0, "send": 0, "wait": 0, "receive": 0 }, "time": 0, "_securityState": "insecure" }, { "pageref": "page_1", "startedDateTime": "2020-08-19T21:16:22.606+08:00", "request": { "bodySize": 0, "method": "GET", "url": "https://localhost/", "httpVersion": "", "headers": [ { "name": "Host", "value": "localhost" }, { "name": "User-Agent", "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0" }, { "name": "Accept", "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" }, { "name": "Accept-Language", "value": "en-US,en;q=0.5" }, { "name": "Accept-Encoding", "value": "gzip, deflate, br" }, { "name": "Connection", "value": "keep-alive" }, { "name": "Upgrade-Insecure-Requests", "value": "1" } ], "cookies": [], "queryString": [], "headersSize": 332 }, "response": { "status": 0, "statusText": "", "httpVersion": "", "headers": [], "cookies": [], "content": { "mimeType": "", "size": 0, "encoding": "base64", "text": "" }, "redirectURL": "", "bodySize": 0 }, "cache": {}, "timings": { "blocked": 0, "dns": 0, "connect": 0, "ssl": 0, "send": 0, "wait": 0, "receive": 0 }, "time": 0, "_securityState": "insecure" }, { "pageref": "page_1", "startedDateTime": "2020-08-19T21:16:22.667+08:00", "request": { "bodySize": 0, "method": "GET", "url": "http://lc-boaaxnm8.cn-e1.lcfile.com/193e8dd306d2278606fb.mp4", "httpVersion": "", "headers": [ { "name": "Host", "value": "lc-boaaxnm8.cn-e1.lcfile.com" }, { "name": "User-Agent", "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0" }, { "name": "Accept", "value": "video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5" }, { "name": "Accept-Language", "value": "en-US,en;q=0.5" }, { "name": "Range", "value": "bytes=1310720-" }, { "name": "Connection", "value": "keep-alive" }, { "name": "Referer", "value": "http://zyayoung.gitee.io/onlineexp/" } ], "cookies": [], "queryString": [], "headersSize": 0 }, "response": { "status": 0, "statusText": "", "httpVersion": "", "headers": [], "cookies": [], "content": {}, "redirectURL": "", "bodySize": -1 }, "cache": {}, "timings": {}, "time": 0 }, { "pageref": "page_1", "startedDateTime": "2020-08-19T21:16:22.668+08:00", "request": { "bodySize": 0, "method": "GET", "url": "http://lc-boaaxnm8.cn-e1.lcfile.com/5713a814aec3b6a545e6.mp4", "httpVersion": "", "headers": [ { "name": "Host", "value": "lc-boaaxnm8.cn-e1.lcfile.com" }, { "name": "User-Agent", "value": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0" }, { "name": "Accept", "value": "video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5" }, { "name": "Accept-Language", "value": "en-US,en;q=0.5" }, { "name": "Range", "value": "bytes=32768-" }, { "name": "Connection", "value": "keep-alive" }, { "name": "Referer", "value": "http://zyayoung.gitee.io/onlineexp/" } ], "cookies": [], "queryString": [], "headersSize": 0 }, "response": { "status": 0, "statusText": "", "httpVersion": "", "headers": [], "cookies": [], "content": {}, "redirectURL": "", "bodySize": -1 }, "cache": {}, "timings": {}, "time": 0 } ] }}