Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Are you encountering the frustrating “ModSecurity: Output filter: Response body too large” error on your recently migrated WordPress site? You’re not alone! This error can be confusing and disrupt your website’s functionality.
Fortunately, there’s a simple fix. This guide will walk you through the process of resolving this error and getting your website back on track.
When your WordPress site throws this error, it means the size of a specific page exceeds the allowed limit for scanning by ModSecurity, a web application firewall. By default, ModSecurity limits the response body size to 512 KB. If your page content goes beyond this limit, you’ll encounter this error.
First, you need to locate the error log. If you’re managing the server, look for the file
. You can filter the entries by typing:/var/log/apache2/error_log
cat error_log | grep "your_domain.com"
This will display all error entries related to your domain. Look for lines containing the "ModSecurity: Output filter: Response body too large"
message.
Here’s how to fix the error:
The fix involves increasing the ModSecurity limit for response body size. Open the file
and add the following line:/etc/apache2/conf.d/modsec/modsec2.user.conf
SecResponseBodyLimit 1048576
This doubles the default limit to 1048576 bytes (1 MB). You can adjust this value further if necessary.
Once you’ve saved the file, restart Apache to apply the changes. You can do this through WHM or by running the command:
service httpd restart
That’s it! The error should now be resolved.
By following these steps, you can easily fix the “ModSecurity: Output filter: Response body too large” error and ensure your WordPress site operates smoothly.