Linux "a2query" Command Line Options and Examples
retrieve runtime configuration from a local Apache 2 HTTP server

a2query is a program designed to retrieve configuration values from a locally available Apache 2 HTTP web server. It was designed to be as robust as possible by returning feasible values even if the Apache 2 syntax validator fails. This program is primarily meant to be used from maintainer scripts.


Usage:

a2query [-m [MODULE]] [-s [SITE]] [-c [CONF]] [-a] [-v] [-M] [-d] [-h]




Command Line Options:

-c
Checks whether the configuration CONF is enabled. If no argument was given, all enabled configuration files are being returned.CONF is compared by string comparison by ignoring a leading "mod_" prefix and possibly a '.conf' or '.load' suffix.
a2query -c ...
-h
Displays a brief summary how the program can be called and exits.
a2query -h ...
-m
Checks whether the module MODULE is enabled, The argument is interpreted in the same way, as for configuration files queried bythe -c switch.
a2query -m ...
-M
Returns the currently enabled Apache 2 MPM (Multi Processing Module).
a2query -M ...
-s
Checks whether the module SITE is enabled, The argument is interpreted in the same way, as for configuration files queried by the
a2query -s ...
-v
returns the currently installed Apache 2 HTTP server version
a2query -v ...