a2ensite
Enable Apache2 virtual host sites
TLDR
Enable a virtual host
SYNOPSIS
a2ensite [-q|--quiet] [-m|--maintmode] [site]
DESCRIPTION
a2ensite is a Debian-specific utility that enables Apache2 virtual host configurations by creating symbolic links in /etc/apache2/sites-enabled pointing to site files in /etc/apache2/sites-available.
The first virtual host handles unmatched requests, so it should be named 000-default to ensure it loads first alphabetically. The tool works alongside a2dissite, which disables sites.
PARAMETERS
-q, --quiet
Don't show informative messages-m, --maintmode
Enables maintainer mode; the program invocation is effectuated automatically by a maintainer script
CAVEATS
This utility is Debian-specific and not available on other Linux distributions. Site changes require an Apache restart or reload to take effect. Virtual hosts are loaded alphabetically, so naming matters.
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.
