9

I have a file uploading site and am getting this error when trying to upload files larger than 400MB. Does anyone know where I can set this value? I also have ModSecurity Disabled for this account so I don't know why MS is catching this in the first place!

Thank you

leppie
  • 115,091
  • 17
  • 196
  • 297
user1446650
  • 1,197
  • 6
  • 15
  • 24

2 Answers2

18

I heard setting a default for apache in httpd.conf for the LimitRequestBody config variable might work.

or maybe not applicable to you but if mod_security is enabled:

/etc/httpd/conf.d/mod_security.conf

Has this: SecRequestBodyLimit 131072 Change to (6MB), or what ever size you want to allow: SecRequestBodyLimit 6000000"*

bbaassssiiee
  • 6,013
  • 2
  • 42
  • 55
armyofda12mnkeys
  • 3,214
  • 2
  • 32
  • 39
3

I face this problem too in Centos 7 / DirectAdmin so. First you should change two variable

  • SecRequestBodyLimit
  • SecRequestBodyNoFilesLimit

you can try this path

/etc/httpd/conf.d/mod_security.conf

so you can edit this file in CentOS/DirectAdmin

nano /etc/httpd/conf/extra/httpd-modsecurity.conf

press Ctrl+W and search for

SecRequestBodyLimit

then change

SecRequestBodyLimit 131072
SecRequestBodyLimit 131072

to

SecRequestBodyLimit 8388608
SecRequestBodyLimit 8388608

Note: 131072 = 127KB , 8388608 = 8MB

Hoe this work for you too.

GameO7er
  • 2,028
  • 1
  • 18
  • 33