I can't seem to get a wildcard vhost working on my local apache installation. My vhosts file currently has the contents below. After I edit it, I'm making sure to restart the server but have still had no luck getting it to work.
Basically, I'm trying to get *.joshholat.local to point to somewhere different than joshholat.local just to make sure the config is working.
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin jholat@gmail.com
DocumentRoot "/opt/local/www"
ServerName joshholat.local
ErrorLog "logs/error.log"
CustomLog "logs/access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin jholat@gmail.com
DocumentRoot "/opt/local/www/phpmyadmin"
ServerName joshholat.local
ServerAlias *.joshholat.local
ErrorLog "logs/error.log"
CustomLog "logs/access.log" common
</VirtualHost>