00-default
The first VHost is the default one.
append _ to disable
?for others?
/etc/apache2/sites-available/sites-available > sites-enabled (symlink)<VirtualHost *:<port>>Note that though you can use domain name here - it actually effectively is an ip - hence for name based matching this should not be the domain name - and the interface ips instead.
ServerAdmin.
ServerName.
Used for name based matching.
ServerAlias.
DocumentRoot.
<Directory>AllowOverride All.
Order allow,deny.
Allow from all.
Require all granted.
(only entry required for 2.4).
<Directory> </Directory>ErrorLog
ErrorLog CustomLog <> combined</VirtualHost>Updated:
2026 Aug 19

