您的位置:首页 > 运维架构 > Nginx

nginx 流媒体 flv 播放 以及上传大小 配置文件设置

2013-09-25 10:12 761 查看
server {
listen 80;
server_name localhost;
root /www/web/default;
index index.php index.html index.htm;
client_max_body_size 2670m;

limit_rate_after 1m; ####在flv视频文件下载了5M以后开始限速
limit_rate 20k; ####速度限制为512K

location ~ \.php$ {
proxy_pass http://127.0.0.1:88; include naproxy.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
expires 30d;
}

location ~ .*\.(js|css)?$ {
expires 12h;
}

location ~ .flv {
flv;
}

}

////////////////// 项目备份

server {
listen 80;
server_name localhost 192.168.1.1 ;
root /data/www/web/default/public_html;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88; include naproxy.conf;
client_max_body_size 1000m;
}
location / {
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1:88; include naproxy.conf;
}
location ~ .flv {
flv;
}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: