[英]ec2 amazon linux 413 Request Entity Too Large Error
Getting "413 Request Entity Too Large" in amazon linux installed on ec2 instance on uploading 5 MB or large file.在上传 5 MB 或大文件时,在 ec2 实例上安装的亚马逊 linux 中获取“413 请求实体太大”。 Want to transfer around 100 MB data but not sure what I am doing wrong.想要传输大约 100 MB 的数据,但不确定我做错了什么。
I tried adding "client_max_body_size 100" inside nginx.conf file like this.我尝试像这样在 nginx.conf 文件中添加“client_max_body_size 100”。
And restarted nginx multiple times using "sudo service reload nginx", "sudo systemctl reload nginx" commands, but still getting this issue again and again.并使用“sudo service reload nginx”、“sudo systemctl reload nginx”命令多次重启nginx,但仍然一次又一次地遇到这个问题。
I am very new to nginx so not sure if I am doing anything wrong or not.我是 nginx 的新手,所以不确定我是否做错了什么。 Can anyone please guide through steps to solve this issue?任何人都可以指导解决此问题的步骤吗? That will be really helpful!这真的很有帮助!
Thank you.谢谢你。
I fixed the issue by replacing 100 with 100M as value of client_max_body_size 100M.我通过将 100 替换为 100M 作为 client_max_body_size 100M 的值来解决此问题。
and restart nginx using "systemctl restart nginx".并使用“systemctl restart nginx”重启 nginx。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.