Applicable to:
- Plesk 12.5 for Linux
- Plesk Onyx for Linux
Symptoms
- Unable to attach files bigger than 15MB in webmail with following error:
CONFIG_TEXT: An error occurred! File upload failed
- Drag and drop file into webmail body message fails with following error:
CONFIG_TEXT: Server error! (Request Entity Too Large)
-
Unable to attach big files to the website forms with the error below:
CONFIG_TEXT: Connection to the server failed
- Following error message is shown in Apache log file:
# tail -f /var/log/httpd/error_log
[:error] ModSecurity: Request body (Content-Length) is larger than the configured limit (13107200). [hostname "webmail.example.com"] [uri "/"] [unique_id "Wvm2-f069f312c27e"], referer: http://webmail.example.com/?_task=mail&_action=compose&_id=123456789abcdefgh - ModSecurity
SecRequestBodyLimit
parameter is set as follows:# egrep -Ri SecRequestBodyLimit /etc/httpd/conf.d/mod_security.conf
SecRequestBodyLimit 13107200
Cause
Upload file process fails because ModSecurity SecRequestBodyLimit
is reached.
Resolution
-
Log in to Plesk.
-
Navigate to Tools & settings > Web Application Firewall (ModSecurity) > Settings > Custom directives:
-
Add the field
CONFIG_TEXT: SecResponseBodyLimit 67108864
-
Press Apply
Comments
0 comments
Please sign in to leave a comment.