Help me with subserver/subdomain config

1 post / 0 new
#1 Wed, 03/02/2011 - 11:26
Urme

Help me with subserver/subdomain config

Hello,

I haven't used Virtualmin that much, but so far everything works great, easy to understand and config.

The thing is I have 10 domains, these domains nameservers is not pointing to my webserver, I administer all my domains at a different place.

All domains have these A-record

A @ 111.222.333.444

A * 111.222.333.444

A www 111.222.333.444

(Not the real IP ofc)

So that works like a charm, I've created 10 virtual servers for my domains.

My main domain is domain1.com

So if I type in test.domain3.com I will be redirected to domain1.com.. if I don't check "Website matches all sub-domains?" option, which will make test.domain3.com point to domain3.com.

The thing is if I create a subserver called sub1.domain3.com everything works as long as I haven't checked "Website matches all sub-domains?"-option. then I can type in sub1.domain3.com and enter that website. But if I type test.domain3.com I will be redirected to domain1.com.

If I check "Website matches all sub-domains?"-option my subserver won't work.

What I want is all non-existing subservers/subdomains to point to that domain. Example: asdasd.domain3.com points to domain3 because it doesn't exist. sub1.domain3.com will point to subserver sub1.domain3.com because it exists in virtualmin.

Anyone following me so far? :)

What have I missed or what do I need to change for it to work like this?