wildcard dns on shared ip's

I'd like to have wildcard dns on my domain (shared IP) so that non existing subdomains all point to my main domain, and existing subdomains still work properly.

I've added *.mydomain.com to the ServerAlias of my domain, but now even my existing subdomains point to my main domain, which isn't right.

Anyone with an idea how to solve my problem? Example would be great wildcard dns on shared ip's
thx.

 

 

 

 

Top