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