It is a error on Nginx Web Server. Actually happened when I tried to import a large sql backup into MySQL server through phpmyadmin.

First, I change the upload limit or max file size on php.ini

  • upload_max_filesize = 100M
  • post_max_size = 100M

And restart the HHVM.

Then I got the error.

413 Request Entity Too Large

Add following into server block.

        client_max_body_size 100M;

And restart nginx service.

nginx-413-error

Of course, you can change it to the size you want.

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

Leave a Reply

Your email address will not be published. Required fields are marked *