CMDCommand · run as root on the server · domain family
urbestack-domain-modsec-set
First published 19 Nov 2026
0.2.30Unchanged since publicationUsage
# urbestack-domain-modsec-set --name DOMAIN [--mode follow|off|logging|blocking] [--choice none|off|logging|blocking]Description
From the command's --help outputSets the ModSecurity mode or the owner's choice for a domain. --mode sets the administrator's mode for the domain. It can raise or lower the server mode, so a domain can be off on a server in blocking mode or be inspected on a server with ModSecurity off. Use --mode follow to inherit the server mode again. --choice sets the owner's mode. The command rejects a choice stronger than the administrator's mode for the domain. The owner can choose a mode only while the administrator's mode for the domain is logging or blocking. Use --choice none to clear the choice. A choice equal to the administrator's mode is treated as no choice. If the owner has chosen a mode, the weaker of the two modes takes effect. Otherwise, the administrator's mode for the domain applies. Updates the domain's virtual host and UrbeStack's ModSecurity configuration for Apache, tests the Apache configuration and reloads Apache. If Apache rejects the configuration, the command restores the previous configuration and discards the changes. It returns the same details as urbestack-domain-modsec-show.Usage: urbestack-domain-modsec-set --name DOMAIN [--mode follow|off|logging|blocking] [--choice none|off|logging|blocking] Sets the ModSecurity mode or the owner's choice for a domain. --mode sets the administrator's mode for the domain. It can raise or lower the server mode, so a domain can be off on a server in blocking mode or be inspected on a server with ModSecurity off. Use --mode follow to inherit the server mode again. --choice sets the owner's mode. The command rejects a choice stronger than the administrator's mode for the domain. The owner can choose a mode only while the administrator's mode for the domain is logging or blocking. Use --choice none to clear the choice. A choice equal to the administrator's mode is treated as no choice. If the owner has chosen a mode, the weaker of the two modes takes effect. Otherwise, the administrator's mode for the domain applies. Updates the domain's virtual host and UrbeStack's ModSecurity configuration for Apache, tests the Apache configuration and reloads Apache. If Apache rejects the configuration, the command restores the previous configuration and discards the changes. It returns the same details as urbestack-domain-modsec-show.
Options
Find other commands that accept these optionsSame in the API
This operation runs the command.Generated from release 0.2.35 (current) · urbestack-domain-modsec-set --help outputThis entry has been unchanged since it was first published in release 0.2.30 on 19 Nov 2026.
urbestack.com/docs/commands/urbestack-domain-modsec-set/