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 

posted @ 2016-01-26 14:44  wanqi  阅读(963)  评论(0编辑  收藏  举报