Showing posts with label load balance. Show all posts
Showing posts with label load balance. Show all posts

Wednesday, January 2, 2013

WWW, WWW2, WWW3...What is the difference?

We've all seen www, www2, www3; We type for exemple 'www.company.com' and we're suddenly redirected to 'www3.company.com'. What exactly is this, and how do we get there?

Starting the domain name name of your web site with www. or www2. or www3. is a common convention and nothing more. There is nothing in the HTTP specification that says a web site must start with www. or any other prefix. It is simply a convention that began in the early days of the web and was used to distinguish a company's web server from its FTP server, gopher server, mail server, etc... But no such distinction is necessary, because this part of the URL, 'www.' help it decide how to perform this internal routing.
Usually this type of configuration is stored in your .htaccess file, located in public_html.

Load balancing

Another example is role-based routing. For example, store.company.com and developer.company.com are both hosted at company.com, but serve different roles on the web; one is an online store, the other is a site with resources for programmers. (And each is probably also load-balanced in ways that don't rewrite your URL.)