Is there a way to setup a catchall (for subdomains) virtual server for a single domain, where I have a couple pre-defined subdomains.
ie:
webmail.example.com -> points to "/var/web/roundcube"
beta.example.com -> points to "/var/web/beta/"
example.com and all other subdomains -> point to "/var/web/www"
<VirtualHost *:80>
ServerName webmail.example.com
ServerAdmin webmaster@example.com
DocumentRoot /var/web/roundcube
<Directory /var/web/roundcube/>
...
</Directory>
...
</VirtualHost>
<VirtualHost *:80>
ServerName beta.example.com
ServerAdmin webmaster@example.com
DocumentRoot /var/web/beta
<Directory /var/web/beta/>
...
</Directory>
...
</VirtualHost>
<VirtualHost *:80>
ServerName example.com
ServerAlias *.example.com
ServerAdmin webmaster@example.com
DocumentRoot /var/web/www
<Directory /var/web/www/>
...
</Directory>
...
</VirtualHost>