Home > Article > System Tutorial > How to handle HTTP errors when uploading resources in WordPress
Build an internal video learning website within the company, and after comparison, WordPress was chosen to build the site. However, various problems were encountered while uploading the video, so we will record the process.
vim /etc/nginx/conf.d/default.conf location / { root /data/web; index index.php index.html index.htm; client_max_body_size 000M; } vim /etc/php.ini upload_max_filesize = 000M post_max_size = 000M max_execution_time = 300
tail /var/log/nginx/error.log 2018/02/14 09:32:07 [error] 87522#87522: *1 client intended to send too large body: 35016434 bytes, client: 36.111.88.33, server: localhost, request: "POST /wp-admin/async-upload.php HTTP/1.1", host: "117.66.240.116:81", referrer: "http://117.66.240.116:81/wp-admin/media-new.php"
Only the following line is the most important saving information. The following error is the problem of body size limit
client intended to send too large body
vim /etc/nginx/nginx.conf http{ client_max_body_size 1000M; keepalive_timeout 300; }
The above is the detailed content of How to handle HTTP errors when uploading resources in WordPress. For more information, please follow other related articles on the PHP Chinese website!