openresty配置:
...
http {
server {
listen 80;
location / {
default_type text/html;
rewrite_by_lua_file scheduler.lua;
}
}
}
scheduler.lua在附件中
用vlc访问http://openresty.host/vod/_definst_/mp4:mr/mr/2013/06/21/20130621_96a0267be67c473ea64175de9ae65790_1_1.mp4/playlist.m3u8
结果openresty应答没有头部。
由于vlc的bug造成发出的请求有问题,在HTTP/1.1前面加了一个0x0a,附件是抓包。
Attachment:
vlc.pkt
Description: Binary data
Attachment:
scheduler.lua
Description: Binary data