[NTLUG:Discuss] w/ and w/o www

lee@brave.com lee at brave.com
Fri Aug 18 13:18:51 CDT 2000


m m wrote:
> 
> Hi,
> 
> How do I set a web site can be with/without?
> for example: http://www.mysite.com and http://mysite.com will point to the
> same file.
> 
> I set the server name as mysite.com, and CName www for that server. ans I
> have to type www.mysite.com to mke it work.
> 
> Is this an httpd.conf or dns issue?

it's a httpd.conf issue


<VirtualHost leeknudsen.com>
        DocumentRoot /home/httpd/html/leeknudsen.com
        ServerAdmin root at localhost
        ServerName leeknudsen.com
        ServerAlias www.leeknudsen.com *.leeknudsen.com
</VirtualHost>


this set up works for me..  
if i put in leeknudsen.com, it works
if i put in www.leeknudsen.com, it works too




More information about the Discuss mailing list