Author Topic: larger than the configured limit of 10240000.How to change the content size lim?  (Read 10739 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hi

Unable to ulpoad large files with POST on a hosted website, getting the following error in logs

Requested content-length of 12758446 is larger than the configured limit of 10240000


How do I change this limit ?

Thanks

Offline
*
You need to increase the LimitRequestBody or SecRequestBodyLimit values in your modsecurity.conf file.




Offline
*
Hi

Where do I find this file?

[root@vps04002 ~]# locate modsecurity.conf
/usr/local/src/modsecurity-2.8.0/modsecurity.conf-recommended
/usr/local/src/modsecurity-2.8.0/iis/wix/modsecurity.conf


Seems I don't have any actual config file with given name...

Offline
*
Hi,

I think you can try this file:

/usr/local/apache/conf.d/modsec2.conf

You can get an idea of the default values from the second file on your list.
/usr/local/src/modsecurity-2.8.0/iis/wix/modsecurity.conf