This function deploys staged changes to the ModSecurity™ configuration file and restarts Apache.
Note:
If the new configuration is invalid, the system will restore the original configuration and maintain the staged changes.
Important:
When you disable the Web Server role, the system disables this function.
whmapi1 --output=jsonpretty \ modsec_deploy_rule_changes \ config='modsec_vendor_configs/example.conf'
{- "data": { },
- "metadata": {
- "command": "modsec_deploy_rule_changes",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}