[英]413 Request Entity Too Large in DigitalOcean (Nginx)
I am facing this issue ( 413 Request Entity Too Large ) in Ubuntu 18.04.我在 Ubuntu 18.04 中面临这个问题( 413 Request Entity Too Large )。 I am using NGINX server,Digital-ocean Cloud.
我正在使用NGINX服务器,数字海洋云。 I have done changes in php.ini,to upload max file size to 128MB.
我在 php.ini 中进行了更改,将最大文件大小上传到 128MB。 But i think i need to do some configuration in nginx.
但我认为我需要在 nginx 中进行一些配置。 Can anyone suggest me what configuration should i do.
谁能建议我应该做什么配置。
I added client_max_body_size 128M;我添加了client_max_body_size 128M; in side http{} block in nginx.conf file, now this issue is solved.
在 nginx.conf 文件中的侧面 http{} 块中,现在此问题已解决。
In nginx add inside server { }
client_max_body_size 128M;
在 nginx 里面添加
server { }
client_max_body_size 128M;
. .
In php config change upload_max_filesize = 128M
and post_max_size = 129M
.在 php 配置更改
upload_max_filesize = 128M
和post_max_size = 129M
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.