Applicable to:
- Plesk for Linux
Symptoms
-
Domain is not available with the following error shown:
CONFIG_TEXT: 500
Internal Server Error -
The following messages can be found in Domains > example.com > Logs or in
/var/www/vhosts/example.com/logs/error.log
file:CONFIG_TEXT: [error] [client 203.0.113.2] ModSecurity: Output filter: Response body too large (over limit of 524288, total not specified). [hostname "www.example.com"] [uri "/index.php"] [unique_id "W*****U43-wA*****G"]
Cause
Domain exceeded the default SecResponseBodyLimit
parameter for ModSecurity (512 Kb).
Resolution
-
Navigate to Domains > example.com > Apache & nginx Settings
-
Add the following line to Additional directives for HTTP and to Additional directives for HTTPS:
CONFIG_TEXT: <IfModule mod_security2.c>
SecResponseBodyLimit 536870912
</IfModule> -
Press Apply .
-
Navigate to Tools & settings > Web Application Firewall (ModSecurity) > Settings > Custom directives section:
-
Add the following line:
CONFIG_TEXT: SecResponseBodyLimit 536870912
-
Press Apply
1. open /etc/apache2/plesk.conf.d/server.conf
2. modify SecResponseBodyLimit value
3. restart apache
Comments
2 comments
Shouldn't that be 536870912 ? Which is 512mb.
Hello Agilehost Sales
I agree with you that 536870912 would look better here and fixed this.
In general, 512mb isn't an obligatory value here. The main idea is that the limit should be more that the response body and this value is individual for different websites/installations.
Please sign in to leave a comment.