错误信息
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
使用 Nginx 服务器上传文件时,浏览器报 413 请求过大
解决办法
设置 Nginx 参数
找到配置文件 nginx.conf (如没有额外配置其他 conf ),在 http{} 或 server{} 或 location{} 节点下添加 client_max_body_size
client_max_body_size 10m; #(改成你想要的数值)

重载配置
cd /sbin
nginx -s reload

当尝试在Nginx服务器上上传大文件时,可能会遇到413 Request Entity Too Large的错误。这个错误意味着服务器不允许接收超过预设大小的请求。为了解决这个问题,你需要修改Nginx配置文件,在http{}
6781

被折叠的 条评论
为什么被折叠?



