[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Raq550: Apache defaulting to first web site



If we visit http://servername.domain.com.au in a web browser, it works fine - the servers' homepage comes up. But when we type in http:// in the browser, it seems to default to one of our customers' web sites (apparently it chooses this site, because its' the first in
Apache's httpd.conf file / list?).

I think it's normal for apache to default to the first web site in its' list...

First for the IP address specified, yes.

but how can we change this so that the web site it displays is
http://servername.domain.com.au, and not the web site of the first
customer we added when we bought the box.

I don't have a RaQ 550 handy to doublecheck, and I know it includes directives per domain rather than list them all out in httpd.conf...

All you need to do is move the <VirtualHost> </VirtualHost> block (or include statement) for servername.domain.com.au to be first in the httpd.conf file.

-- Bruce