Control Web Panel

Security => Mod_Security => Topic started by: n8v8r on February 11, 2018, 06:23:05 PM

Title: mod_sec for apache only, neglecting nginx?
Post by: n8v8r on February 11, 2018, 06:23:05 PM
CentOS Linux  7.4.1708 (Core)
Kernel 3.10.0-693.17.1.el7.x86_64
Apache & Varnish Cache & Nginx Reverse Proxy
Apache/2.4.29
nginx/1.12.2
PHP 7.1.9
suPHP version 0.7.2
MySQL version: 10.1.31-MariaDB
CWPpro 0.9.8.458
SEL disabled
Mod Security disabled

It seems that mod_security does not get compiled for nginx with the CWP installer script for mod_security? Indicative seems also the absence of nginx here
(https://s10.postimg.org/7kcj0pqeh/mod_sec.png)

 Adding to the nginx vhost
Code: [Select]
location / {
  ModSecurityEnabled on;
  ModSecurityConfig modsecurity.conf;
}
only produces
Quote
unknown directive "ModSecurityEnabled"