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

上一篇:.NET开源项目


下一篇:64位Linux下编译搭建Nginx1.5与PHP5.5(CentOS6.4)