Nginx 报错 413 Request Entity Too Large 的解决方法

栏目: Nginx · 码农笔记 · 发布时间: 7年前

内容简介:Nginx 报错 413 Request Entity Too Large 的解决方法

##报错信息

413 Request Entity Too Large

##解决方法

修改 php 的配置文件 /etc/php5/fpm/php.ini

upload_max_filesize = 20M  
post_max_size = 20M

修改 Nginx 的配置文件

server {  
    ...  
    client_max_body_size 20m;  
    ...  
}

以上所述就是小编给大家介绍的《Nginx 报错 413 Request Entity Too Large 的解决方法》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Lighttpd

Lighttpd

Andre Bogus / Packt Publishing / 2008-10 / 39.99

This is your fast guide to getting started and getting inside the Lighttpd web server. Written from a developer's perspective, this book helps you understand Lighttpd, and get it set up as securely an......一起来看看 《Lighttpd》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具