Top

Install ModSecurity Rules to CENTOS WEB PANEL

First you need install ModSecurity to CentOS Web Panel. Just select default settings and install ModSecurity, because there is not custom selection for rules.

Install ModSecurity

Centos Webpanel ModSecurity install

When ModSecurity installed, we need edit rules configuration file:

Centos Webpanel ModSecurity Configuration

Rules Configuration

Now edit Rules Configuration file /usr/local/apache/modsecurity-owasp-old/owasp.conf. Just delete all lines current configuration.

Then Add line and replace SerialKey with your subscription serial key!:

SecRemoteRules SerialKey https://rules.malware.expert/download.php?rules=generic

Example configuration

Centos Webpanel ModSecurity Owasp Configuration

Note! Remember save configuration!

Restart apache

Final restart apache and check apache error_log that rules loaded.

Centos Webpanel Apache Restart