How to configure Apache to automatically for ltd2
File /etc/apache2/sites-available/default
<VirtualHost *:80>
ServerName %-3.0.%-2.0.localhost
VirtualDocumentRoot /var/www/localhost/%-3.0.%-2.0/www
</VirtualHost>
File /var/www/localhost/foo/www/index.html
File /var/www/localhost/bar/www/index.html
Thank you.