博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Nginx之 entity too large
阅读量:4112 次
发布时间:2019-05-25

本文共 516 字,大约阅读时间需要 1 分钟。

背景:

nginx上传文件报" entity too large",原因是上传文件的大小超过了“client_max_body_size”的值

解决:

1.找到对应的nginx配置文件,有些是对应应用的配置文件

2.修改client_max_body_size值:

server {    listen       80;    server_name  www.linkrmb.com;    location / {        proxy_pass http://xxxx/;	proxy_set_header        Host    $http_host;	proxy_set_header        X-Real-IP       $remote_addr;	proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;	proxy_set_header   Cookie $http_cookie;   	 client_max_body_size    1000m;    }}

3.重启:

sbin/nginx -s reload

 

转载地址:http://jlqsi.baihongyu.com/

你可能感兴趣的文章
python: extend (扩展) 与 append (追加) 的差别
查看>>
「译」在 python 中,如果 x 是 list,为什么 x += "ha" 可以运行,而 x = x + "ha" 却抛出异常呢?...
查看>>
谷歌阅读器将于2013年7月1日停止服务,博客订阅转移到邮箱
查看>>
浅谈JavaScript的语言特性
查看>>
LeetCode第39题思悟——组合总和(combination-sum)
查看>>
LeetCode第43题思悟——字符串相乘(multiply-strings)
查看>>
LeetCode第44题思悟——通配符匹配(wildcard-matching)
查看>>
LeetCode第45题思悟——跳跃游戏(jump-game-ii)
查看>>
LeetCode第46题思悟——全排列(permutations)
查看>>
LeetCode第47题思悟—— 全排列 II(permutations-ii)
查看>>
LeetCode第48题思悟——旋转图像(rotate-image)
查看>>
驱动力3.0,动力全开~
查看>>
记CSDN访问量10万+
查看>>
Linux下Oracle数据库账户被锁:the account is locked问题的解决
查看>>
极客算法训练营学习笔记(一)
查看>>
记CSDN访问20万+
查看>>
Windows 环境下Webstorm 2020.3 版本在右下角找不到Git分支切换部件的一种解决方法
查看>>
Electron-Vue项目中遇到fs.rm is not a function问题的解决过程
查看>>
飞机换乘次数最少问题的两种解决方案
查看>>
有向无回路图的理解
查看>>