Menu
Hello everybody,
what is the difference between “www” and “www1” or “www2” in Domain Names?
Examples:
[url]www.domainname.com
www1.domainname.com
you can't set up multiple web servers on the same domain name and name them all www[/QUOTE]Of course you can; it's called load balancing.
www,www1, and www2 [/QUOTE]They are not domains so therefore they must be subdomains. Anything that prefixes the domain an that is separated from it by a dot is a subdomain. Also www. is not default, it just so happens that many people use the www. subdomain for legacy reasons.
machine name[/QUOTE]I don't know where you are getting this term from. Everything to the left of a dot in a domain name is a sub domain, hence in [I]http://
Once you get to the domain or sub-domain you can then have one or more computers hosting that domain or sub-domain. Each of these computers has a machine name and where there is only one the machine name of www is usually used. [/QUOTE]This is just not true. In a typical virtual host www. is set up as an alias of its parent domain. Example virtual host:
[CODE]<VirtualHost *:80>
ServerName felgall.com
[color=red]ServerAlias www.[/color]felgall.com
DocumentRoot /path/to/felgall.com/public_html
</VirtualHost>[/CODE]
The root directory can also be set as a wildcard of the domain so it processes all requests for that domain that the DNS has entries for. Example virtual host:[CODE]<VirtualHost *:80>
ServerName felgall.com
[color=red]ServerAlias *.[/color]felgall.com
DocumentRoot /path/to/felgall.com/public_html
</VirtualHost>[/CODE]
the default machine name of www is usuallyServers do not assume anything. They strictly follow programmed logic.[color=red]assumed[/color] so that the person will still reach the right computer to access the site.[/QUOTE]
When a site uses more than one computer for hosting then each computer needs to be given a different machine name and often www1, www2 etc are what gets used.[/QUOTE]That is not true. For example [I]www.google.com[/I] resolves to two IP addresses ([I]66.249.87.104[/I] and [I]66.249.87.99[/I]) and at each of those IPs there could be any number of individual servers all serving requests for the same domain name ([I]www.google.com[/I]). If each machine had its own name how would the clients ever know which one to access?
While I do have several sub-domains within my domain I do not have one called www and if I did then you would be able to access it atIf that sub domain did not exist the server would return a 404. What you really mean is you do not have a unique virtual host set up for www.felgall.com but instead it is an [I]alias[/I] of another virtual host.www.www.felgall.com .[/QUOTE]
if I did then you would be able to access it atThat is not true either. Each subdomain must either be explicitely listed in a virtual host or be the subject of a wildcard. If it is neither the server will either pass the request to the first virtual host (which is normally configured with an error message) or return a 404.www.www.felgall.com .[/QUOTE]
Not everything to the left of the dot is a subdomain name. The userid password and machine name are not subdomains and neither is the protocol.
protocol://userid:[email protected] /path/filename[/QUOTE]
The specifications state that the www is the machine name. [/QUOTE]I've done an extensive search but I can seem to find any reference to [I]machinename/machine name[/I] used in this context. Nevertheless, since I'm sure everyone understands what we are talking about I don't see any need to debate that further.
You two are making my head spin. I reckon a fight would solve this. ?[/QUOTE]
Sometimes in a URL the “WWW” is followed by a number, such as “WWW1” or “WWW2.” The number that follows the “WWW” indicates that the data being retrieved by the Web browser is gathering the information from a different Web server than the one that serves the typical “WWW” address.[/QUOTE]Not necessarily. One server could be serving all those subdomain, while, on the other hand, 100 servers could be serving requests from a single www subdomain. By the way there is nothing special about the www subdomain; it works just the same as any other subdomain and has no special meaning.
The original intention was that the www on the front identify the particular server that the site was being delivered from.[/QUOTE]Can you expand on that.
All I know is at work we have www1,www2,www3, and so on. All are seperate servers with the same content on it located around the world. and anyone that goes to www or 'sans' www gets whatever one of those servers are closest to them (unless it is offline, then the next closest and so on).[/QUOTE]
[LIST]
[*] www.domain.com [*]ftp.domain.com [*]mail.domain.com [*]dns1.domain.com [*]etc.domain.com
[/LIST]
[/QUOTE]
You two are making my head spin. I reckon a fight would solve this. ?[/QUOTE]
0.1.9 — BETA 5.25