I am trying to have all subdomains point to one location on disk, and a particular subdomain (dev) point to another.
I tried this :
<VirtualHost cueflash.com>
ServerAdmin webmaster@localhost
ServerAlias www.cueflash.com *.cueflash.com
DocumentRoot /home/cueflash/www/cueflash.com
CustomLog /var/log/apache2/cueflash.com.log combined
ErrorLog /var/log/apache2/cueflash.com.error.log
</VirtualHost>
<VirtualHost dev.cueflash.com>
ServerAdmin webmaster@localhost
ServerAlias dev.cueflash.com
DocumentRoot /home/cueflash/www/dev.cueflash.com
CustomLog /var/log/apache2/cueflash.com.dev.log combined
ErrorLog /var/log/apache2/cueflash.com.error.dev.log
</VirtualHost>
But both seem to point to the main site.