/ Published in: Apache
Add to vhost block. Dynamically maps all subdomains of sub.example.com to their respective document root. Note: Doesn't work great when the sub sub needs to add additional mod_rewrite rules of its own, i.e., a Drupal installation.