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
preguntada hace 2 años3070 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 2 años
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas