国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 網(wǎng)站 > 建站經(jīng)驗(yàn) > 正文

解決nginx報(bào)錯(cuò)信息 client intended to send too large body: 13

2019-11-02 17:00:01
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

解決nginx報(bào)錯(cuò)信息 client intended to send too large body: 1331696 bytes

1,nginx后臺(tái)error日志報(bào)錯(cuò)

2016/02/05 16:23:56 [error] 12024#0: *441106971 connect() failed (111: Connection refused) while connecting to upstream, client: 113.214.1.10, server: localhost, request: "GET /h5teb/ugcH5/index.htm?source=android&mall=8&TGC=911FDD2F99B84D528F0A7EE71780A943 HTTP/1.1", upstream: "http://113.214.1.23:8000/h5teb/ugcH5/index.htm?source=android&mall=8&TGC=911FDD2F99B84D528F0A7EE71780A943", host: "www.testcrm.com"2016/02/05 16:48:14 [error] 12013#0: *441119082 client intended to send too large body: 1331696 bytes, client: 113.214.1.10, server: localhost, request: "POST /h5teb/complaints/save.htm HTTP/1.1", host: "www.testcrm.com", referrer: "http://www.testcrm.com/h5teb/complaints/index.htm"

2,web工程中添加對(duì)文件上傳的限制

web工程部署了一個(gè)單獨(dú)的nginx,在http{后面添加限制100m的上限

client_max_body_size 100m;[nginx@wgq_idc_web_1_21 logs]$ vim /usr/local/nginx/conf/nginx.confhttp {  include    mime.types;  server_tokens off;  sendfile    on;  tcp_nopush on;  tcp_nodelay on;  keepalive_timeout 65;  log_format main '$proxy_add_x_forwarded_for $remote_user [$time_local] "$request" '           '$status $body_bytes_sent "$http_referer" '           '"$http_user_agent" "$http_x_forwarded_for" '           'upstream: $upstream_addr';  access_log off;    client_max_body_size 100m;

3,靜態(tài)資源中添加對(duì)文件上傳的限制

靜態(tài)資源部署了一個(gè)單獨(dú)的nginx,在轉(zhuǎn)發(fā)location中進(jìn)行配置100m的上限,client_max_body_size 100m;:

[fastdfs@wgq_test_crm~]$ vim /usr/local/nginx/conf/nginx.conf    location /group1/M00 {      root  /data/fastdfs/data;      include gzip.conf;      ngx_fastdfs_module;      client_max_body_size 100m;      expires 12h;    }    location /group2/M00 {      root  /data/fastdfs_group2/data;      ngx_fastdfs_module;      client_max_body_size 100m;      #access_log /usr/local/nginx/logs/group2_pic.log main;      expires 12h;      include gzip.conf;    }

4,然后重新加載2組nginx服務(wù)器,問(wèn)題解決了,不會(huì)再報(bào)錯(cuò)了。

感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 建昌县| 三江| 克什克腾旗| 南京市| 北宁市| 绥化市| 易门县| 宁远县| 德庆县| 临颍县| 那曲县| 礼泉县| 丰顺县| 阳曲县| 聂拉木县| 称多县| 金寨县| 抚远县| 婺源县| 阿合奇县| 定南县| 宝鸡市| 砚山县| 宜昌市| 阳西县| 宁阳县| 彭山县| 定日县| 尼玛县| 荣成市| 靖远县| 平定县| 耿马| 富源县| 九江县| 康乐县| 文化| 齐河县| 洞口县| 仙桃市| 石阡县|