VirtualDocumentRoot should do it.

<VirtualHost *:80>
    ServerName placeholdername
    ServerAlias *.example.com
    VirtualDocumentRoot /var/www/%1
</VirtualHost>