0

On my test server I have nginx + unicorn set up. And nginx client_max_body_size is set to 20M. But she user uploads file more then 1mb it return error 413 Entity is too large. nginx.

So, I don't quite understand what make this problem?

Is there any possibly to unicorn limit upload?

EDIT

I'am getting 500 error when user send POST method request (specifically large).

Andrey Drozdov
  • 571
  • 1
  • 5
  • 22
  • I think this is off-topic for Stack Overflow and would fit better on [superuser.com](https://superuser.com/) – spickermann Dec 27 '16 at 19:52
  • Where, exactly, are you setting `client_max_body_size`? Per [this StackOverflow post](http://stackoverflow.com/questions/36781508/still-getting-413-request-entity-too-large-even-after-client-max-body-size-100m), it could be that that settings needs to appear in _other_ `nginx` config files. – Castaglia Dec 27 '16 at 23:34
  • `server { client_max_body_size 20m; }`. File is located in `/etc/nginx/sites-available/my_site` (it's included in main nginx settings file) – Andrey Drozdov Dec 28 '16 at 12:32

0 Answers0