This function adds text to a ModSecurity™ configuration file.
Important:
When you disable the Web Server role, the system disables this function.
config required | string The ModSecurity™ configuration filename and file path, relative to the Example: config=modsec_vendor_configs/example.conf |
deploy | integer Default: 0 Whether to deploy the new text to the system.
Example: deploy=1 |
final | integer Default: 0 Whether to add the text as the final upload to the configuration file.
Note:
Example: final=1 |
init | integer Default: 0 Whether to add the text as the initial upload to the configuration file.
Note:
Example: init=1 |
text | string Default: "" The text to add to the configuration file. Example: text=newtext |
object |
whmapi1 --output=jsonpretty \ modsec_assemble_config_text \ config='modsec_vendor_configs/example.conf'
{- "metadata": {
- "command": "modsec_assemble_config_text",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}