0

When im trying to upload more than 1mb im getting this error:

enter image description here

I tried configuring my nginx.conf file, I've added this line to inside http { }:

'client_max_body_size 100M;'

and restarted nginx: service nginx restart

but I still get 413 request entity too large.

I feel like I'm missing something because when I tried to search my problem the client_max_body_size solve their problem.

michael ababao
  • 145
  • 2
  • 11
  • Does this answer your question? [nginx - client\_max\_body\_size has no effect](https://stackoverflow.com/questions/2056124/nginx-client-max-body-size-has-no-effect) – Nafees Anwar Jan 16 '20 at 10:29
  • nope. tried that. – michael ababao Jan 16 '20 at 10:57
  • I just checked my own nginx configuration: Not sure why, but I have `client_max_body_size 25m;` both in the `http {}` block (in nginx.conf) as well as in my `server {}` block (in my included conf file). – dirkgroten Jan 16 '20 at 11:27
  • can you copy the http and server block @dirkgroten? – michael ababao Jan 16 '20 at 11:35
  • I've put them in two separate gists: [nginx.conf](https://gist.github.com/deegeenl/c754404b57da4f74a3bd82327976861b) and [mydomain.conf](https://gist.github.com/deegeenl/f9602c8e40188f6c8275c3a5a6f7fd86) – dirkgroten Jan 16 '20 at 11:45

0 Answers0