amazon ec2 - Nginx - 413 Request Entity Too Large - Stack Overflow

admin2025-04-16  5

I have developed a flask application and deployed it in an Elastic Beanstalk environment. Currently using Amazon Linux 2023. What im trying is to upload a 40mb file through my application and keep getting 413 Request Entity Too Large.

As im using Amazon Linux 2023, i have a .plaform folder in the root of my project and 01_nginx.config inside it.

# .platform/01_nginx.config
files:
  "/nginx/conf.d/elasticbeanstalk/01_nginx.config":
    mode: "000644"
    owner: root
    group: root
    content: |
      client_max_body_size 200M;
      

I see this is working for many people but im keep struggling to find why this is not working for me.

转载请注明原文地址:http://www.anycun.com/QandA/1744772022a87405.html