Symptoms
When using the Apache module mod_evasive, you may encounter 403 errors.
Description
The 403 error occurs when Apache blocks a user who has made too many requests in a short period. If legitimate users frequently encounter 403 errors, it may be necessary to adjust the mod_evasive configuration.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Open
/etc/apache2/conf.d/300-mod_evasive.confin your preferred text editor. - Locate the
DOSPageCountline. - Change the
DOSPageCountvalue to the desired value.DOSPageCount 40
Please note that "40" must be replaced with the desired value. - Locate the
DOSSiteCountline. - Change the
DOSSiteCountvalue to the desired value.DOSSiteCount 200
Please note that "200" must be replaced with the desired value. - Save the changes and exit the text editor.
- Rebuild the Apache configuration.
/usr/local/cpanel/scripts/rebuildhttpdconf
- Restart Apache.
/usr/local/cpanel/scripts/restartsrv_httpd
Comments
0 comments
Article is closed for comments.