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년 전3070회 조회
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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인