latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

ModSecurity
Server Settings

Return all ModSecurity configuration files

This function lists ModSecurity™ configuration files. The system stores the configuration files in the /usr/local/apache/conf/modsec_vendor_configs directory.

Important:

When you disable the Web Server role, the system disables this function.

get/modsec_get_configs

Response

HTTP Request was successful.

Example response

{
  "data": {
    "configs": [
      {
        "active": 1,
        "config": "modsec_vendor_configs/MyVendor/one.conf",
        "vendor_id": "MyVendor"
      }
    ]
  },
  "metadata": {
    "command": "modsec_get_configs",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}