nginx 配置其他路径
gedit /etc/nginx/sites-enabled/default
location /hlstest {
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
alias /home/wanqi/work_plu/hls/;
add_header Cache-Control no-cache;
}
location ^~ /media/ {
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
alias /home/wanqi/work_plu/hls/;
add_header Cache-Control no-cache;
}
最后sudo service nginx restart