serverName mydomain.tld
ServerAlias *.mydomain.tld

VirtualDocumentRoot /var/www/%1/
#DocumentRoot /var/www/mydomain.tld

#
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

ErrorLog ${APACHE_LOG_DIR}/%1.mydomain.tld.log