I need help with our NGINX set up

Reinis Rozitis r at roze.lv
Fri Apr 19 10:18:20 UTC 2024


> It only accepts maximum of 128 kb of data, but the client_max_body_size 500M;. Is there a way to locate the cause of error.

Can you actually show what the "error" looks like?

The default value of client_max_body_size is 1M so the 128Kb limit most likely comes from the backend  application or server which handles the POST request (as an example - PHP has its own post_max_size /  upload_max_filesize  settings).



p.s. while it's unlikely (as you specify the settings in particular location blocks) since you use wildcard includes it is always good to check with 'nginx -T' how the final configuration looks like. Maybe the request isn't handled in server/location block where you expect it ..

rr


More information about the nginx mailing list