I use apache2ctl -S to list enabled sites:

VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:443                  is a NameVirtualHost
         default server www.xxx.org (/etc/apache2/sites-enabled/000-www.xxx.org-ssl.conf:1)
Syntax OK

Is there a command I can use to list disabled sites?


My guess is NO, but don't worry. You have an easier way to do so: write


in the console, and then press TAB two times. You'll see a list with all sites.

On the other hand you may use:

apache2ctl -t -D DUMP_DUMP_VHOSTS

to list your enabled sites, as it eases the output.

Check apache2ctl doc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.