Section: Maintenance Commands (8)
Updated: 8 June 2007
Return to Main Contents
a2ensite, a2dissite - enable or disable an apache2 site / virtual host
This manual page documents briefly the
is a script that enables the specified site (which contains a <VirtualHost> block) within the
configuration. It does this by creating symlinks within
disables a site by removing those symlinks. It is not an error to
enable a site which is already enabled, or to disable one which is
Apache treats the very first virtual host enabled specially as every request not
matching any actual directive is being redirected there. Thus it should be called
in order to sort before the remaining hosts to be loaded first.
- -q, --quiet
Don't show informative messages.
- -m, --maintmode
Enables the maintainer mode, that is the program invocation is effectuated
automatically by a maintainer script. This switch should not be used by end
When disabling a module, purge all traces of the module in the internal state
exit with status 0 if all
are processed successfully, 1 if errors occur, 2 if an invalid option was used.
Directory with files giving information on available sites.
Directory with links to the files in
for enabled sites.
This manual page was written by Stefan Fritsch <email@example.com> (based on the a2enmod manual
page by Daniel Stone <firstname.lastname@example.org>) for the Debian GNU/Linux distribution.
- EXIT STATUS
- SEE ALSO
This document was created by
using the manual pages.
Time: 05:42:59 GMT, January 18, 2018