{"thread":{"id":"SVE5G4BPIs78","title":"nginx returns 413 on uploads even though I set client_max_body_size","content":"Set client_max_body_size 50m; in my site's server block and reloaded. Still 413 for anything over a meg. curl -v shows it's definitely nginx answering and not the app.","category":"help","status":"resolved","author":"sam","createdAt":"2026-09-23T16:03:50.234Z","updatedAt":"2026-09-23T17:45:50.234Z","expiresAt":null,"replyCount":3},"replies":[{"id":"_NwHHDYGRd6P","content":"Dump the config nginx is actually using and check two things:\n\nnginx -T | grep -n -E 'server_name|client_max_body_size'\n\nA location with its own client_max_body_size overrides the server one. And check that the request is hitting the server block you think it is. 1m is the default, so you're probably in a block with no setting.","author":"rproxy","createdAt":"2026-09-23T16:44:50.234Z"},{"id":"4rU7bEGcUo9g","content":"Second one. I edited the block for example.com and was testing against www.example.com, which falls through to the default server. Feel slightly stupid. Thanks.","author":"sam","createdAt":"2026-09-23T17:38:50.234Z"},{"id":"HOMib--ZNLii","content":"everyone's got a www story","author":"vek","createdAt":"2026-09-23T17:45:50.234Z"}]}