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

Request

  • Base URL
    https://whm-server.tld:2087/json-api
  • Auth
    HTTP basic

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.

dataobject

Example response

{
  "metadata": {
    "command": "modsec_deploy_rule_changes",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.