ModSecurity
Rule Settings
Enable staged ModSecurity rule changes
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.
get/modsec_deploy_rule_changes
Query parameters
configstring required
Example:modsec_vendor_configs/example.conf
The ModSecurity configuration file's path and name, relative to the /usr/local/apache/conf/ directory.
Response
HTTP Request was successful.
Example response
{
"metadata": {
"command": "modsec_deploy_rule_changes",
"reason": "OK",
"result": 1,
"version": 1
}
}