I'm a complete linux and server noob but I've started a project in an attempt to learn. What I'm trying to do right now is get wildcard subdomains to work.
In my vhost (sites-available) file I have:
<VirtualHost *.80> ServerName domain.com ServerAlias www.domain.com domain.com *.domain.com
In my domain registrar DNS settings I have an A record for @, www and * pointing to my server IP. Now to my knowledge this should be working, however when I go in my browser and browse to *.domain.com it comes up with the default apache text "It works!", when I go to straight to domain.com I can see my web page (which I want to be displaying for *.domain.com too).
Any help would be greatly appreciated! I'm probably missing something blindingly obvious but I'm a noob :)