latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

ModSecurity
Server Settings

Remove ModSecurity configuration file include

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.

get/modsec_make_config_inactive

Query parameters

configstring required
Example:modsec_vendor_configs/example.conf

The ModSecurity configuration file's path and filename, relative to the /etc/apache2/conf.d/ directory.

Response

HTTP Request was successful.

dataobject

Example response

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