Control Web Panel

WebPanel => Apache => Topic started by: gosha on September 20, 2016, 07:05:54 AM

Title: larger than the configured limit of 10240000.How to change the content size lim?
Post by: gosha on September 20, 2016, 07:05:54 AM
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
Title: Re: larger than the configured limit of 10240000.How to change the content size lim?
Post by: Bausch on September 24, 2016, 08:23:06 PM
You need to increase the LimitRequestBody or SecRequestBodyLimit values in your modsecurity.conf file.



Title: Re: larger than the configured limit of 10240000.How to change the content size lim?
Post by: gosha on September 26, 2016, 11:39:02 AM
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...
Title: Re: larger than the configured limit of 10240000.How to change the content size lim?
Post by: Bausch on September 27, 2016, 12:32:34 AM
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