Uploads of 5 MB fail with 413 behind your reverse proxy. What do you change?
IntermediateScenarioTLS, HTTP & Application Layer
Answer
Situation read → Proxies enforce body size limits, and each hop has its own.
What I'd do →
- Nginx: set
client_max_body_size 50m;in thehttp,serverorlocation - Check ingress-nginx annotation
nginx.ingress.kubernetes.io/proxy-body-size: "50m" - Check ALB (1 MB limit for Lambda targets) and WAF body inspection limits
- Test with
curl -F [email protected] https://example.com/upload -v
Why → The smallest limit in the chain rejects the request, and the error comes from that hop.
Interview tip → Say you confirm which hop answered by looking at response headers.
More on TLS, HTTP & Application Layer
Explain what happens in a TLS 1.3 handshake in a few sentences.BeginnerYour site must redirect all HTTP traffic to HTTPS. How do you do it?BeginnerWhat is the difference between 4xx and 5xx errors, and which ones do you see most in networking problems?BeginnerHTTP/1.1, HTTP/2 and HTTP/3: what changed and why does it matter in operations?BeginnerThe browser console shows a CORS error when your frontend calls your API. What is it and how do you fix it?BeginnerHow do you check which certificate a server presents and when it expires?Beginner