a2query (1)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
a2query - retrieve runtime configuration from a local Apache 2 HTTP serverSYNOPSIS
a2query [-m [MODULE
]] [-s [SITE
]] [-c [CONF
]] [-a] [-v]
[-M] [-d] [-h]
DESCRIPTION
a2query is a program designed to retrieve configuration values from a locally available Apache 2HTTP
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.
OPTIONS
- -a
-
Returns the Apache 2 ``Module Magic Version'' (APIversion) number, the server was compiled with. The returned version does not contain any minor versions which are known to be compatible with the major version returned.
- -c [CONF]
-
Checks whether the configuration CONFis enabled. If no argument was given, all enabled configuration files are being returned.CONFis compared by string comparison by ignoring a leading ``mod_'' prefix and possibly a '.conf' or '.load' suffix.
- -h
- Displays a brief summary how the program can be called and exits.
- -m [MODULE]
-
Checks whether the module MODULEis enabled, The argument is interpreted in the same way, as for configuration files queried by the -c switch.
- -M
-
Returns the currently enabled Apache 2 MPM(Multi Processing Module).
- -s [SITE]
-
Checks whether the module SITEis enabled, The argument is interpreted in the same way, as for configuration files queried by the -c switch.
- -v
-
returns the currently installed Apache 2 HTTPserver version
- -q
- suppress any output. This is useful to invoke a2query from another script. This is useful if only the return code is of interest.