Query Apache2 in Ubuntu
MODULE
Checks whether the module MODULE is enabled, lists all enabled modules if no argument was given
Examples:
a2query -m
a2query -m auth_basic
SITE
Checks whether the site SITE is enabled, lists all sites if no argument was given
Examples:
a2query -s
a2query -s 000-default
CONF
Checks whether the configuration CONF is enabled, lists all configurations if no argument was given
Examples:
a2query -c
a2query -c security