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

[cobalt-users] ServerAlias for server domain (i.e. main domain)



Hi all,

How does one add the ServerAlias for the main server domain
(RaQ 4i)? And is that the correct term (main server domain)?

Let's say the main server domain is www.abc.com.

I've added a ServerAlias line in /etc/admserv/conf/httpd.conf ,
but when restarting the server, I got this error:
"ServerAlias only used in <VirtualHost>"

On the RaQ 4 domain www.abc.com is defined in /etc/admserv/conf/httpd.conf,
and not in /etc/httpd/conf/httpd.conf, where all the virtual
domains records are.

The nasty side effect is that when accessing my site without
the www bit, visitors are being redirected to the first
VirtualHost in the conf file.

Surely one cannot add a Virtualhost record for the main
server domain?

Thanks,

Johan Pretorius

.
. http://host24.com
. All the PHP/mySQL hosting you'll ever need
.