Applicable to:
- Plesk for Linux
Symptoms
-
A website is not loading with the following error message in a web browser:
PLESK_INFO: 500
Internal Server Error -
The following messages are logged in Domains > example.com > Logs:
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"] ...
Cause
The website has exceeded default ModSecurity SecResponseBodyLimit parameter (1 MB).
Resolution
-
Go to Domains > example.com > Hosting & DNS > Apache & nginx Settings.
-
Add the line below to Additional directives for HTTP and Additional directives for HTTPS fields to increase
SecResponseBodyLimitto 256 MB (or define your own value):CONFIG_TEXT: <IfModule mod_security2.c>
SecResponseBodyLimit 268435456
</IfModule> -
Apply the changes.
-
Go to Tools & settings > Web Application Firewall (ModSecurity) > Settings tab. > Custom directives section:
-
Add the line below to Custom directives section to increase
SecResponseBodyLimitto 256 MB (or define your own value):CONFIG_TEXT: SecResponseBodyLimit 268435456
-
Apply the changes.
Comments
The for all domains code still works, the for one domain version causes errors on the site….
Maybe an update of the code is needed?
Please sign in to leave a comment.