Mod-security at vhost level

#1
hi, I have 5 domains I want to enable mod-sec on 3 domains only is this possible?
I have added this conf in httpd_config.conf but this will be applied to all domains



module mod_security {
modsecurity on
modsecurity_rules `
SecDebugLogLevel 0
SecDebugLog /usr/local/lsws/logs/modsec.log
SecAuditEngine on
SecAuditLogRelevantStatus "^(?:5|4(?!04))"
SecAuditLogParts AFH
SecAuditLogType Serial
SecAuditLog /usr/local/lsws/logs/auditmodsec.log
SecRuleEngine On
`


modsecurity_rules_file /usr/local/lsws/modsec/master.conf
ls_enabled 1
}


how to download the comodo rule for openlitespeed is there any guide ?
does litespeed.yaml rules work in openlitespeed?
 
Last edited:
Top