a2dissite

Disable an Apache virtual host on Debian-based OSes. More information: <https://manpages.debian.org/latest/apache2/a2dissite.8.en.html>.

Install

All systems
curl cmd.cat/a2dissite.sh
Debian Debian
apt-get install apache2
Ubuntu
apt-get install apache2
Alpine
apk add apache2
image/svg+xml Kali Linux
apt-get install apache2
Windows (WSL2)
sudo apt-get update sudo apt-get install apache2
Raspbian
apt-get install apache2
Docker
docker run cmd.cat/a2dissite a2dissite powered by Commando

Disable an Apache virtual host on Debian-based OSes. More information: <https://manpages.debian.org/latest/apache2/a2dissite.8.en.html>.

  • Disable a virtual host:
    sudo a2dissite virtual_host
  • Don't show informative messages:
    sudo a2dissite --quiet virtual_host

© tl;dr; authors and contributors