[英]Wordpress: 413 Request Entity Too Large
I have a WP site managed on an Ubuntu server with Plesk. 我有一个使用Plesk在Ubuntu服务器上管理的WP网站。 For a few hours I can not upload files above 2MB.
几个小时后,我无法上传2MB以上的文件。 I have made several attempts like:
我做了几次尝试,例如:
On other sites uploaded to the same server, with the same settings (one is the backup of the site in question) instead I can correctly upload the files. 在其他上传到同一服务器上且具有相同设置(一个是该网站的备份)的网站上,我可以正确上传文件。
On the file upload screen I see the upload limit correctly (for example 64M) but if I upload a file greater than 2MB I see the error: 在文件上传屏幕上,我可以正确看到上传限制(例如64M),但是如果我上传的文件大于2MB,则会看到错误:
413 Request Entity Too Large
413请求实体太大
What could it be? 会是什么呢? Do you have any ideas / suggestions on this?
您对此有任何想法/建议吗?
Thanks a lot! 非常感谢!
Most probably that the reason of this issue is ModSecurity settings. 最有可能是此问题的原因是ModSecurity设置。 Check solution from https://support.plesk.com/hc/en-us/articles/115001764933-Unable-to-edit-document-on-the-website-ModSecurity-Request-body-no-files-data-length-is-larger-than-the-configured-limit-
从https://support.plesk.com/hc/en-us/articles/115001764933-Unable-to-edit-document-on-the-website-ModSecurity-Request-body-no-files-data-length检查解决方案-is-幅度超出所述配置-LIMIT-
To fix, you need to set server block like this 要修复,您需要像这样设置服务器块
server {
client_max_body_size 0;
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.