Koozali.org: home of the SME Server

virtual domains without the "www" prefix

Dean Thomas

virtual domains without the "www" prefix
« on: July 22, 2002, 04:46:14 AM »
G'day one and all

I have setup our server to host several different domains, but I have discovered a very strange thing indeed, for instance the servers main host name is acsc.com.au it has several other domains using virtual domains one in particular is peoplepix.com.au. Everything is working well when you goto www.peoplepix.com.au but if you goto peoplepix.com.au without the "www" you end up viewing the acsc.com.au web site

All I can say here is "what the" :-) can end help me discover why this is so, and then help me fix it?????

Jon Thiele

Re: virtual domains without the "www" prefix
« Reply #1 on: July 22, 2002, 06:27:47 AM »
Dean Thomas wrote:
>
> G'day one and all
>
> I have setup our server to host several different domains,
> but I have discovered a very strange thing indeed, for
> instance the servers main host name is acsc.com.au it has
> several other domains using virtual domains one in particular
> is peoplepix.com.au. Everything is working well when you goto
> www.peoplepix.com.au but if you goto peoplepix.com.au without
> the "www" you end up viewing the acsc.com.au web site
>
> All I can say here is "what the" :-) can end help me discover
> why this is so, and then help me fix it?????

i have a number of virtual domains running and i don't have a problem - with or without the 'www'.  one thing you may want to do is to check with your dns provider to see exactly how they have been set up...  i think the problem may be there.

chris meredith

Re: virtual domains without the "www" prefix
« Reply #2 on: July 22, 2002, 06:46:30 AM »
You might check your Apache config.  See if the virtual domains are configured as just "www.whatever.com" or "whatever.com".  If there isn't a domain entry in the conf file it will display the default domain.  Try changing the entry to "whatever.com" and restart Apache.  If that works go edit the template.

Craig Foster

Re: virtual domains without the "www" prefix
« Reply #3 on: July 22, 2002, 02:21:40 PM »
You need to set the virtual hostname to peoplepix.com.au

Remember that www, mail, etc are all automatic names generated by SME's template system.