a2query -s example.com

Category: Web Servers & Proxies

a2query -s example.com

Check whether an Apache site is enabled

Reports whether the site named example.com is currently enabled, which is a quick way to audit your virtual hosts (vhosts). It works by inspecting the sites-enabled directory. Module state is checked with a2query -m.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.