Get your free beta license ↗
CMDCommand · run as root on the server · modsec family

urbestack-modsec-status

First published 19 Nov 20260.2.30Unchanged since publication

Usage

# urbestack-modsec-status [--decide]

Description

From the command's --help output
Reports whether UrbeStack manages ModSecurity, the configured server mode, and whether the
module is installed and loaded by Apache. It shows the module's package and installed version,
the versions of the bundled OWASP CRS and WordPress exclusions, whether OWASP CRS is included,
and the request body limits.

It lists UrbeStack's configuration file, your own configuration file, the package's
configuration file and the module loader. It reports whether the package's settings are active
and identifies the file and line of the SecRuleEngine directive in your own file that sets the
engine for domains that follow the server's mode. It also reports domain and rule counts and, if
the server mode has been set, who last set it and when.

The state is not_managed when UrbeStack leaves ModSecurity under the administrator's control,
missing when UrbeStack manages it and the module is absent, or not_loaded when Apache leaves the
installed module unloaded. The conflict state identifies a file with overlapping rule numbers
that keeps UrbeStack from including OWASP CRS. The by_hand state means your own configuration
sets SecRuleEngine. The managed state means UrbeStack's configuration applies.

Use --decide during setup to choose who manages ModSecurity if the server has no decision yet.
If a decision is already set, --decide leaves the server unchanged. An installed module stays
under the administrator's control. If the module is absent, UrbeStack takes over and
installation is due through urbestack-modsec-install. The result reports whether a decision was
made on this run and whether installation is due.

Options

Find other commands that accept these options

Same in the API

This operation runs the command.

More in modsec

13 commands, by what they work onView all commands in this family →
urbestack-modsec-disabled-
urbestack-modsec-disabled-rule-
urbestack-modsec-rule-
Generated from release 0.2.35 (current) · urbestack-modsec-status --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-modsec-status/