up vote 0 down vote favorite
share [g+] share [fb]

I'm trying to set up a wildcard subdomain on my VPS. Ultimately I want to end up with this:

main site: my.domain.tld
subdomain: sub1.my.domain.tld -> should end up serving my.domain.tld/sub1

I am using plesk 8.6. I have created a DNS A record pointing at my VPS' IP. I have then restarted the DNS server and waited up to 24 hours. But trying ping sub1.my.domain.tld results in an unknown host error.

So I know there's more stuff involved, configuring apache etc. But so far, I cannot even get the subdomain working at all, let alone serve up the right content.

I have also tried a CNAME record, to no effect. I have also tried creating a regular subdomain with a fixed name, which also does not work. Pre-configured subdomains DO work, like ftp.my.domain.tld or mail.my.domain.tld.

I am clearly missing something here, but my hosting provider charges a small fortune for any support request not involving hardware physically burning down, so I'm hesitant to ask them.

Any ideas?

link|improve this question
feedback

2 Answers

If you setup the wildcard DNS correctly but not the server then you would get a destination unreachable or ping timeout error. Unknown host means that it hasn't resolved an address to ping.

So go back and look at your DNS setup.

It would be helpful if you kept your examples consistent if you are going to replace the real urls.

Presumably you are trying to set up *.mydomain.com or is it more like *.subdomain.mydomain.com ?

link|improve this answer
it's like *.subdomain.mydomain.com. I've updated my examples. So you think -- as I do -- that my apache configuration is not (yet) relevant? – avdgaag Jan 29 '10 at 11:02
feedback

There is a bug with Plesk regarding this. After two years thay have not yet managed to fix it! shaking my head

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.