Load Balancer HTTP 413 Error

0

Solution suggested on Stackoverflow was to increase max http message size.

by creating this file: /.platform/nginx/conf.d/proxy.conf with the content:\nclient_max_body_size 100M;

Where to create this file .. How to do this for an AWS Load Balancer (not Elastic Beanstalk) ?

richeso
已提問 2 年前檢視次數 3066 次
1 個回答
0

It would help a lot if you could describe more about what you're trying to do and what is in your environment. For example what targets are you using for the load balancer (EC2 or Lambda - I assume EC2) and what type of load balancer (I assume Application Load Balancer but that may not be the case). Also: Are you getting an error message? If so, what is it? Is it being generated by the load balancer or the target?

profile pictureAWS
專家
已回答 2 年前
  • Thanks for your post. It was generated from the load balancer side and not the target.

    I finally figured out that the AWS load balancer was just routing traffic to an internal VM where nginx was installed.. so I logged into the VM and changed the nginx configuration in /etc/nginx/nginx.conf to add the line in the http section:

    client_max_body_size 200M;
    

    then reloaded the new nginx configuration using the command: nginx -s reload ... and the http error 413 no longer appeared.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南