首页
消防安全隐患排查和验收
域名转发系统
祺平订单系统
您所在的位置:首页 > Nginx > 正文

nginx 出现 413 Request Entity Too Large 问题的解决方法

311

nginx 出现 413 Request Entity Too Large 问题的解决方法

上传图片时提示 nginx 出现 413 Request Entity Too Large 问题的解决方法。

在nginx 配置文件 http {} 里面加上以下配置:

#文件大小限制,默认1m

client_max_body_size     50m;

client_header_timeout    1m;

client_body_timeout      1m;

proxy_connect_timeout     60s;

proxy_read_timeout      1m;

proxy_send_timeout      1m;


如果不知道 nginx 在哪可以查:  ps -ef|grep nginx 

配置文件一般在   nginx/conf/nginx.conf

配置完保存,重启 nginx

检查语法

nginx/sbin/nginx -t  

重启

nginx/sbin/nginx -s reload



本文网址:http://www.14study.cn/show.asp?id=174

若本文章侵犯了您的著作权,请联系我删除 QQ:695898855

更多>>网友评论
发表评论