系统相关
首页 > 系统相关> > Nginx:413 Request Entity Too Large 的解决方法

Nginx:413 Request Entity Too Large 的解决方法

作者:互联网

报错信息
413 Request Entity Too Large

解决方法:

(20M大小,自己调节,根据文件大小。)
修改 php 的配置文件 /etc/php5/fpm/php.ini

upload_max_filesize = 20M 
post_max_size = 20M

 


修改 Nginx 的配置文件

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

 

重启 Nginx 服务和 php-fpm 服务即可。

标签:配置文件,max,Request,Entity,Large,Nginx,Too,php,20M
来源: https://www.cnblogs.com/todarcy/p/11085412.html