• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

mod_security making server slow

G

gizmo_24

Guest
After installing mod_security with the total ruleset I noticed that the server gets really slow and sometimes it even doesn't have the resources left for an ssh login :/

Removing mod_security makes the server run fine again.

Does anyone have suggestions on how to improve the mod_security configuration? Maybe a "lite" ruleset?

Running Plesk 7.5.4 on FreeBSD 4.10 with Apache 1.3.33
 
What are your server hardware specs? I have even run mod_security with all 10 rulesets on a Celeron 2.4 with 512MB without having any noticeable slowdowns. I have RH9, Apache 2 on the server. You can always pick and choose which rulesets to use, you do not have to run all of them.
 
the full ruleset is massive.

disable badips, blacklist and blacklist2, and see how it goes, the difference should be huge, while maintaining the same level of appllication security.
 
Back
Top