Introduction
Tuning mod_evasive to the needs of your server will help prevent legitimate traffic from being blocked. Mod evasive will log to /var/log/apache2/mod_evasive by default. If you see legitimate traffic being blocked, you will need to adjust your mod_evasive settings. The steps below cover how to do this.
Procedure
1) Log in to the server via SSH, or access the Terminal from WHM.
Using Terminal To Access the Command Line
2) Edit the /etc/apache2/conf.d/300-mod_evasive.conf file as desired using your editor of choice.
vim /etc/apache2/conf.d/300-mod_evasive.conf
nano /etc/apache2/conf.d/300-mod_evasive.conf
3) Restart Apache.
/scripts/restartsrv_httpd
Information about the mod_evasive settings can be found in our documentation.