Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Peter Farsinsen on September 04, 2002, 04:39:18 PM

Title: Using wildcards...
Post by: Peter Farsinsen on September 04, 2002, 04:39:18 PM
I've set up a CNAME pointing *.mydomain.tld to mydomain.tld ... when doing that on a virtualhost eg. CNAME *.myseconddomain.tld -> myseconddomain.tld it seems to work when requesting existing hostnames eg. www.myseconddomain.tld and mail.myseconddomain.tld but, when requesting a hostname that does not exist in SME it does not resolve the ibay set for myseconddomain.tld but instead the primary ... it there anyway to work around this ? In the server manager I've tried to make at hostname called *.myseconddomain.tld put that's not possible ... the hostname has to start with either a letter og number.

Furthermore i would like to know if it's possible to make www.user1.mydomain.tld equal to www.mydomain.tld/user1... or do i really have to create an ibay for each subdomain !?

Sorry for the spelling...
Title: Re: Using wildcards...
Post by: Geoff Bennion on September 06, 2002, 12:11:45 AM
The only way is to change your primary domain name.

The way it works, is when a request for a url comes in, apache goes thru the list of virtual domains, if no match it uses the primary html share.

If you do a manual template, you could edit the apache.conf file so it does match on *.myseconddomain

(look at virtual hosts)