Home > Backend Development > PHP Tutorial > nginx,php不能上传大图有关问题(413)

nginx,php不能上传大图有关问题(413)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:23:11
Original
889 people have browsed it

nginx,php不能上传大图问题(413)
上传图片 出现错误:413 Request Entity Too Large
修改nginx.conf 在http{
    client_max_body_size 10M; #添加 改大点
}
修改php.ini 中

upload_max_filesize = 10M
post_max_size = 10M

重启nginx,php-fpm

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Error restarting nginx
From 1970-01-01 08:00:00
0
0
0
server - Nginx configuration webapp problem
From 1970-01-01 08:00:00
0
0
0
Nginx default.conf problem
From 1970-01-01 08:00:00
0
0
0
centos7 - NGINX exception occurs
From 1970-01-01 08:00:00
0
0
0
nginx load balancing
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template