Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
Look up the VirtualDocumentRoot directive along with the mod_vhost_alias module for Apache 2.2. I'm not going to elaborate since I'm 99% certain it's explained in the Apache manual as mass virtual hosting.
If you can't get it to work using the manual and a google search then someone will be willing to dig deeper into the mechanics, but please try it yourself first .
NameVirtualHost xxx.darwin.juretic:80
<VirtualHost xxx.darwin.juretic:80>
ServerName xxx.subdomain.domain.com
ServerAlias *.darwin.juretic
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/"
VirtualDocumentRoot /var/www/vhosts/%1
<Directory "var/www/vhosts/">
Options +FollowSymLinks
Options Includes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>