SSL on hostname

#4
Hi, I want to set global configuration in mod sec.
I want to add this
## ModSecurity fixed global configuration
SecDataDir "/var/secdata"

## ModSecurity global configuration

SecAuditEngine "RelevantOnly"
SecConnEngine "On"
SecDisableBackendCompression "Off"
SecPcreMatchLimit "1500"
SecPcreMatchLimitRecursion "1500"
SecRuleEngine "Off"

where can I add it can you guide me?

i have this conf in httpd_config.conf

module mod_security {
modsecurity on
modsecurity_rules `
SecDebugLogLevel 0
SecAuditEngine on
SecAuditLogRelevantStatus "^(?:5|4(?!04))"
SecAuditLogParts AFH
SecAuditLogType Serial
SecRuleEngine On
`
ls_enabled 0
}
 

Cold-Egg

Administrator
#5
I think you can just add these rules under the "modsecurity_rules `" , but I am not sure if those work with LiteSpeed or not, you need to test it.
 
Top