LinuxCommandLibrary

a2dissite

disable an Apache2 virtual host

TLDR

Disable a virtual host

$ sudo a2dissite [virtual_host]
copy
Don't show informative messages
$ sudo a2dissite -q [virtual_host]
copy
Disable a virtual host and purge all traces from the internal state database
$ sudo a2dissite -p [virtual_host]
copy

SYNOPSIS

a2dissite [-q|--quiet] [-m|--maintmode] [-p|--purge] [site]

DESCRIPTION

a2dissite is a Debian-specific utility that disables Apache2 virtual host configurations by removing symbolic links from /etc/apache2/sites-enabled. Site configuration files remain in /etc/apache2/sites-available and can be re-enabled later.
The tool silently succeeds if the specified site is already disabled. After disabling a site, Apache must be restarted or reloaded for changes to take effect.

PARAMETERS

-q, --quiet

Don't show informative messages
-m, --maintmode
Enables maintainer mode; the program invocation is effectuated automatically by a maintainer script
-p, --purge
When disabling a site, purge all traces from the internal state database

CAVEATS

This utility is Debian-specific and not available on other Linux distributions. Site changes require an Apache restart or reload to take effect.

HISTORY

Created as part of the Apache2 package for Debian GNU/Linux. Part of the a2ensite/a2dissite family of utilities for managing Apache virtual hosts.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

$54.00
nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

$129.95
GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

$739.99
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

$16.99
Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50
Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

$1,589.00