Trying to set up wildcard DNS, not working.

They have: 1 posts

Joined: Jun 2005

I have a virtual dedicated server at GoDaddy and I'm trying to set up wildcard DNS. In short, I want:
anything.mydomain.com/thepage.html
to resolve to:
mydomain.com/thepage.html

I've taken the following steps:
1. Using Plesk, I created an A record to point *.mydomain.com to the IP address.
2. I created a file at /home/httpd/vhosts/mydomain.com/conf/vhost.conf and it contains the following text, nothing more:
ServerAlias *.mydomain.com
3. Using SSH, I logged in as root and ran the following command:
# /usr/local/psa/admin/bin/websrvmng -a -v
4. I rebooted the machine.

And now:
anything.mydomain.com/thepage.html gives a 404 error.
anything.mydomain.com produces the Plesk default page.
mydomain.com - all pages work fine.

Did I do something incorrectly, or are there missing steps I didn't take? Thanks!

(If someone wants to see the actual page, the domain is 04planet.info and a page that works is 04planet.info/random.1.html)