Nginx streaming flv playback and upload size profile settings

Source: Internet
Author: User

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
}

}

Project Backup

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
}

}

Nginx streaming flv playback and upload size profile settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.