I don't get it and I hope you are able to help.
I have 3 domains and one server. I would like to get all 3 domains via port 80 on the right DirectoryRoot. But I'm unable to do that. With my current sites-available/default file they are all linking to the same directory (domain3).
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
ServerName www.domain1.tld
ServerAlias *.domain1.tld
DocumentRoot /var/www/domains/domain1/
<Directory /var/www/domains/domain1/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ServerName www.domain2.tld
ServerAlias *.domain2.tld
DocumentRoot /var/www/domains/domain2/
<Directory /var/www/domains/domain2>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ServerName www.domain3.tld
ServerAlias *.domain3.tld
DocumentRoot /var/www/domains/domain3/
<Directory /var/www/domains/domain3>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined