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

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;

}

}

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;

}

}