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  Views(516)  Comments(0Edit  收藏