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

Follow

Comments

7 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

    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

Please sign in to leave a comment.

Have more questions? Submit a request