Unable to upload file to the website: Request body no files data length is larger than the configured limit

Follow

Comments

9 comments

  • Avatar
    Alejandro Betancor

    Hi,

    In CentOS 7 with Obsidian, the changes are working when modifying the file /etc/httpd/conf/modsecurity.d/rules/tortix/modsec/tortix_waf.conf

    The file /etc/httpd/conf.d/mod_security.conf is no existan.

     

    Regards

     

     

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Alejandro Betancor

    I've checked this on my test server and agree with you.

    I will pass this to the article author.

    0
    Comment actions Permalink
  • Avatar
    Shai Dayan

    how can that be done on ubuntu?

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    Hello Shai, article updated and new instructions can be done on Ubuntu too.

    0
    Comment actions Permalink
  • Avatar
    sanjiv

    /asl/config I don't have asl file then how will I proceed ?

    0
    Comment actions Permalink
  • Avatar
    Yulia Plokhotnikova

    Hello @sanjiv,

    It is not /asl/config file, but /etc/asl/config. If this file is missing, try this solution:

    1. Log in to the server via SSH.

    2. Set the following in the /etc/httpd/conf.d/modsec2.imunify.conf file with a vi text editor:

      SecResponseBodyLimit 546870912
      SecRequestBodyNoFilesLimit 10485760

      Note: it is specified in Bytes.

    3. Restart Apache:

       

      systemctl restart httpd

    If it does not help, check /var/www/vhosts/example.com/logs/error_log for detailed error that appears when issue is reproduced and search at support.plesk.com/hc using this error for another article.

    0
    Comment actions Permalink
  • Avatar
    sanjiv

    There is no file with this name "modsec2.imunify.conf". Still  I have an error 413 entity too large. Please suggest a working solution. I had  already worked with each possible case to resolve the same.

    0
    Comment actions Permalink
  • Avatar
    Juan Pueyo

    Hi,

    I customized it on the domain level:  Websites & Domains > domain name >  Apache & nginx Settings


    <IfModule mod_security2.c>
         SecRequestBodyLimit 546870912
    </IfModule>

    0
    Comment actions Permalink
  • Avatar
    Aykut Ozkaya

    Hi All

    I have the same problem. I have been managing this by increasing the limits in the /etc/httpd/conf.d/modsec2.imunify.conf file. However, every time IM360 updates the chnages are deleted. Is there a more permenant location for increased server upload limits ?

    PS : regarding the /etc/httpd/conf/modsecurity.d/rules/tortix/modsec/tortix_waf.conf

    I have this file in one of my production servers but not the other. They  are configured almost identical- not sure why one has this file and the other has not

    Lastly - would adding the  /etc/httpd/conf/modsecurity.d/limits.conf file ( with higher limits) work? despite having the tortix_waf.conf? 

    any suggestion would be much appriciated

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request