在公司內部建置內部視訊學習網站,經過對比選擇了wordpress進行站點建置。但在上傳影片遭遇到了各種問題,特將此處理過程進行記錄。
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"
只有下面這一行是最主要的保存資訊。以下錯誤就是body限制大小的問題
client intended to send too large body
vim /etc/nginx/nginx.conf http{ client_max_body_size 1000M; keepalive_timeout 300; }
以上是如何處理WordPress上傳資源封包HTTP錯誤的詳細內容。更多資訊請關注PHP中文網其他相關文章!