<body>
An avid Internet browser  
Web    Images    GroupsNew!    News    Froogle    more »
  Advanced Search
  Preferences    
 blog by Jane Doe Results 1 - 10 for InternetBrowser.org/blog/ - The web log of an avid Internet browser[definition].  
 
    
RSS XML Feed ATOM XML Feed
« Home

Latest 10 Posts

US govt plays spoil sport in .XXX approval
Chitika hosted on a VPS @ Servint
Chitika audit process
The Best Entrepreneurs Under 25
French can do it too ...
The expired domain name parasites
Remembering the "Browser"
Better ways to a better rank on SERPs
"Reverse" Brain Drain
Did you test drive your RSS feed?
 
     Related Blogs
Blog Contest Site
 
     Archives
2005-11-22
2005-11-23
2005-11-24
2005-11-25
2005-11-26
2005-11-28
2005-11-29
2005-11-30
2005-12-01
2005-12-02
2005-12-04
2005-12-05
2005-12-06
2005-12-07
2005-12-09
2005-12-10
2005-12-12
2005-12-13
2005-12-14
2005-12-15
2005-12-16
2005-12-17
2005-12-18
2005-12-19
2005-12-21
2005-12-29
2005-12-31
2006-01-01
2006-01-05
2006-01-06
2006-01-17
2006-01-24
2006-01-27
 
     Other Resources
#1 Freelance Destination
Freelance Ratings
Freelance Contests

Where is your WWW?



Ever noticed how some websites fail to return a page on typing "www.domain.com" but instead work only when "domain.com" is accessed?
I've just come across a few such sites today and thought I'd make a post here to educate with what I know.

To make your site accessible from both "www.domain.com" as well as "domain.com", you simply need to add an "Alias (CNAME) Entry". A canonical name (CNAME) record maps an alias to the real name. Note that an alias for www is often setup as a CNAME, so that requests to www.domain.com can be sent to the same website that handles the requests for domain.com.

So, the forward lookup zone would look some thing like
www IN CNAME domain.com.
domain.com. IN A 207.58.135.90.

Care needs to be taken in your webserver configuration as well i.e., the web server needs to be configured appropriately to handle the request for the domain based on either the IP address or the host header entry. Host headers are commonly used by web servers to host multiple domains on one IP address.

For example, while using Microsoft Windows IIS (web server), create a new web site for the domain using the IIS Manager, and add the domain (e.g. domain.com) as a new host header value listening to the same IP address as specified in the DNS entry. The port is set to 80 (the default for http requests). The host header can be added by clicking on the advanced tab next to the IP address configuration for that web site application. Set the home directory for the domain web site to the directory (e.g. C:\Inetpub\wwwroot\). Add another host header entry for www.domain.com so that anyone can access the website when typing with www in the beginning.

In case of Apache web server, the subdomain is configured by virtual host entries in httpd.conf as shown below.
Listen 80
NameVirtualHost *

<VirtualHost *>
ServerName www.domain.com
DocumentRoot /home/httpd/htdocs/
</VirtualHost>

<VirtualHost *>
ServerName domain.com
DocumentRoot /home/httpd/htdocs/
</VirtualHost>

Where is your WWW? - Sunday, December 04, 2005 -

Post a Comment


Result Page: 

 


































 


 

Search within results | Language Tools | Search Tips | Dissatisfied? Help us improve


Google Home - Blogger

© 2005 InternetBrowser.org/blog/ - The web log of an avid Internet browser