Re: domains without www.

by "Grant Peel" <grant(at)thenetnow.com>

 Date:  Thu, 11 Jan 2001 17:51:07 -0500
 To:  "Rich Bowen" <rbowen(at)rcbowen.com>,
"beth" <beth(at)netstat.com>
 Cc:  <hwg-servers(at)hwg.org>
 References:  netstat rcbowen
  todo: View Thread, Original
You can use a one liner using >= Apache 1.3.xx

Like this:

# DIOMAINNAMEHERE.com Virtual Host httpd.conf directive.
<VirtualHost DOMAINNAMEHERE.com>
ServerName DOMAINNAMEHERE.com
ServerAlias www.DOMAINNAMEHERE.com
ServerAdmin webmaster(at)DOMAINNAMEHERE.com
DocumentRoot /usr/local/etc/httpd/htdocs/DOMAINNAMEHERE
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/htdocs/DOMAINNAMEHERE/cgi-bin/
TransferLog ....
LogFormat ....
</VirtualHost>

-G



----- Original Message -----
From: "Rich Bowen" <rbowen(at)rcbowen.com>
To: "beth" <beth(at)netstat.com>
Cc: <hwg-servers(at)hwg.org>
Sent: Thursday, January 11, 2001 4:07 PM
Subject: Re: domains without www.


> > Is it common practice to put www.whatever.com as well as whatever.com in
> > the DNS file?
>
> Yes, it's a very common practice. The only problem that this can
> (potentially) cause is that email for a domain foo.com is delivered,
> unless told otherwise, to the machine that responds as foo.com. This can
> be overcome, of course by defining a MX in the zone. (Unless, of course,
> they are actually the same machine, which is sometimes the case.)
>
> If you look at the sites yahoo.com, cnn.com, microsoft.com, etc, without
> the www, you'll get the expected thing.
>
> Typically, I'll make A records for foo.com as well as for www.foo.com,
> (even though they are the same host) and then make other things CNAMES
> pointing at those hosts. The reason for this is that some things (some
> versions of sendmail, for example) complains if a host is a CNAME.
>
> But, in short, yes, this is very common, and a good idea if you want to
> make sure that you don't lose web traffic from frustrated people trying
> to take a shortcut.
>
> --
> Rich Bowen --  Director of Web Application Development
> http://www.cre8tivegroup.com/  --  rich(at)cre8tivegroup.com
> Have trouble remembering things?   http://www.idforgetmyhead.com/
>

HWG: hwg-servers mailing list archives, maintained by Webmasters @ IWA