Disable a virtual host

a2dissite

  • Disable an Apache virtual host on Debian-based OSes.
    More information: <https://manpages.debian.org/latest/apache2/a2dissite.8.en.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo a2dissite {{virtual_host}}

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