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.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ modsec_get_configs
{- "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
}
}