Linux "a2dissite" Command Line Options and Examples
enable or disable an apache2 site / virtual host

This manual page documents briefly the a2ensite and a2dissite commands. a2ensite is a script that enables the specified site (which contains a <VirtualHost> block) within the apache2 configuration. It does this by creating symlinks within /etc/apache2/sites-enabled.


Usage:

a2ensite [ [-q|--quiet] site]


    a2dissite [ [-q|--quiet] site]






Command Line Options:

-q
Don't show informative messages.
a2dissite -q ...
-m
Enables the maintainer mode, that is the program invocation is effectuated automatically by a maintainer script. This switchshould not be used by end users.
a2dissite -m ...
-p
When disabling a module, purge all traces of the module in the internal state data base.EXIT STATUSa2ensite and a2dissite exit with status 0 if all sites are processed successfully, 1 if errors occur, 2 if an invalid option wasused.EXAMPLESa2dissite 000-defaultDisables the default site.FILES/etc/apache2/sites-availableDirectory with files giving information on available sites./etc/apache2/sites-enabledDirectory with links to the files in sites-available for enabled sites.
a2dissite -p ...