"413 Request Entity Too Large" error when mod_security is enabled
Issue
When using the Apache httpd from JBoss Core Services and ModSecurity is enabled, this error is returned to browser sometimes:
The requested resource /path/to/my/app does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.
In Apache httpd error log:
[Mon Jan 01 01:01:01 2018] [:error] [pid ****] [client 10.10.10.10:47496] [client 10.10.10.10] ModSecurity: Request body no files data length is larger than the configured limit (131072).. Deny with code (413) [hostname "example.com"] [uri "/path/to/my/app"] [unique_id "*********"], referer: https://example.com/path/to/my/app?
Environment
- Apache httpd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
