This function adds an include for a ModSecurity™ configuration file to
the modsec2.cpanel.conf
file. This makes the ModSecurity configuration file
active.
Important:
When you disable the Web Server role, the system disables this function.
whmapi1 --output=jsonpretty \ modsec_make_config_active \ config='modsec_vendor_configs/example.conf'
{- "data": { },
- "metadata": {
- "command": "modsec_make_config_active",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}