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

Re: [cobalt-users] main site URL without www



 I'm sure this is in the archive, but I can't find it, and I really have
 tried. The closest I could get was
 http://list.cobalt.com/pipermail/cobalt-users/2001-June/046008.html where
 Johan Pretorius seems to ask the right question but there is no followup.

 For the main site on the server, how does one make URLs both with and
 without the www bit work? I have tried removing the www bit in the DNS
 server and then using

 ServerAlias *mysite.com

 in /etc/httpd/conf/httpd.conf, but that makes the URL work without the www
 but not with. I also tried

 ServerAlias www.mysite.com - same result.

 If I put the www back in the DNS, the URL won't work with the www regardless
 of what I use in the ServerAlias line.

 Is there a solution other than making this site a virtual site rather than
 the main site?

 Thanks

 Eddie Bishop

put an A record in dns from domain.com -> ip.ip.ip.ip
and either another A for www -> ip.ip.ip.ip
.. or a CNAME for www -> domain.com