413 Request Entity Too Large

Issues related to configuring your network
Post Reply
wp.rauchholz
Posts: 133
Joined: 2016/11/20 11:58:45

413 Request Entity Too Large

Post by wp.rauchholz » 2018/03/21 20:33:11

I get above mentioned error when trying to upload a 7MB pdf to my webserver.

I set in php.ini 'post_max_size = 0' to disable the limit and in set in httpd.conf (I also tried the vhost conf file wo-lar.com.conf)
<Directory "/var/www/wo-lar.com/html">
LimitRequestBody 20971520
</Directory>

What else can be wrong?

Thanks you. Wolfgang

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: 413 Request Entity Too Large

Post by pjsr2 » 2018/03/26 20:32:53

What is the value of upload_max_filesize? Any max size limits in set in the .htaccess file?

wp.rauchholz
Posts: 133
Joined: 2016/11/20 11:58:45

Re: 413 Request Entity Too Large

Post by wp.rauchholz » 2018/03/27 17:36:50

Thank you for following up.
Solution was though a bit different. I had to increase SecRequestBodyLimit parameter in mod_security.conf

Post Reply