Activa módulos de apache. Ver apache2ctl.
# a2enmod security2
# a2enmod evasive
# a2enmod php8.x
Algunos módulos requieren configuración. Por ejemplo el módulo evasive:
# nano /etc/apache2/mods-enabled/evasive.conf
DOSHashTableSize 2048
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 1
DOSSiteInterval 2
DOSBlockingPeriod 10
#DOSWhitelist
#DOSEmailNotify you@yourdomain.com
#DOSSystemCommand "su - someuser -c '/sbin/... %s ...'"
DOSLogDir "/var/log/mod_evasive