Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides
https://forum.ivorde.com/

NGINX: 413 Request Entity Too Large
https://forum.ivorde.com/nginx-413-request-entity-too-large-t20004.html
Page 1 of 1

Author:  admin [ Thu Sep 14, 2017 4:48 am ]
Post subject:  NGINX: 413 Request Entity Too Large

Edit nginx.conf or vhost configuration file and modify or add following line adjusting the desired size.:

Code:
...
      # Upload maximum size
      client_max_body_size 15M;
...


If your site is most probably using PHP, nginx also needs to set the following php parameter:

Code:
...
        location ~\.php($|/) {
                fastcgi_param PHP_VALUE "post_max_size=15M \n upload_max_filesize=15M ";
...

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/