LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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

INSTALL

sudo apt install apache2
copy
sudo zypper install apache2
copy
brew install apache2
copy

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

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid