nginx blocks flv video file upload solution

Problem : nginx blocks flv upload. When

uploading flv encounters an IO error, try to use ip to directly access the page to upload, and it can be successful.

Solution:
1. Recompile nginx and add upload module
1. Copy nginx-upload-module-master
2. . /configure --add-module=/www/nginx-1.8.0/nginx-upload-module-master --add-module=/www/nginx-1.8.0/nginx_ajp_module-master/ --with-pcre=/ www/nginx-1.8.0/pcre-8.33 --with-zlib=/www/nginx-1.8.0/zlib-1.2.8 --with-http_sub_module
3. Make
4. Make install

2. Modify nginx.conf:

upload_pass /web/Resource/jsp/fileUp.jsp?allowType=*.flv&fileTypes=*.flv&path=_netpat_temp;
upload_cleanup 400 404 499 500-505;
upload_store /usr/local/platform/file/upload/ 1;
upload_store_access user:r ;
upload_limit_rate 128k;
upload_pass_args on;



Q: client intended to send too large body: 12061790 bytes, A: Open nginx.conf and add client_max_body_size 64M
in the http{} field ; #How many M fill in according to the actual situation

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326655786&siteId=291194637