I have configured apache2 virtual host with a sub domain in the following way:
/etc/apache2/sites-available/website:
<VirtualHost *>
ServerName website.local
ServerAlias sub.website.local
DocumentRoot /home/myname/dev/website/web/
...
</VirtualHost>
/etc/hosts
127.0.0.1 website.local
127.0.0.1 sub.website.local
And it works! Both http://website.local
and http://sub.websitel.local
point to DocumentRoot. Now, how do I reconfigure this, so that any subdomain http://*.website.local
will point to DocumentRoot?