List enabled virtual hosts

a2query

  • Retrieve runtime configuration from Apache on Debian-based OSes.
    More information: <https://manpages.debian.org/latest/apache2/a2query.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo a2query -s

click the source code to copy install a2query on any operating system with command-not-found.com