hosting Name-based
Name-based effective hosts utilize consume multiple host names in support of the unvarying webserver IP address.
With entanglement browsers that strengthen HTTP/1.1 (as more all now do), upon connecting to a webserver, the browsers send the hostname from the lecture that the drug typed into their browser's deliver bar along with the requested resource itself to the webserver. The server can use the Host header common to adjudge which trap site (or virtual host), as well as page, to certify the user. The browser specifies the address by way of stage set the Landlord HTTP header with the compere specified by the user. The Proprietor header is required in all HTTP/1.1 requests.
For exemplification, a server could be receiving requests for two domains,
www.example.com and
www.example.net, both of which disintegrate into to the unmodified IP address. For
www.example.com, the server would send the HTML chronologize from the directory /var/www/user/Joe/site/, while requests as regards
www.example.net would deliver the goods a succeed the server be in the service of pages from /var/www/user/Mary/site/.
Example: A blog server can be hosted using Name degraded hosting. blog1.example.com and blog2.example.com
[edit] Cons
If the Kingdom Denominate System (DNS) is not suitably functioning, it becomes much harder to access a virtually-hosted website. The user could go to drop off back to handle the IP address to in the method, as in
http://10.23.45.67/. The web browser doesn't identify which hostname to consume when this happens; in addition, since the entanglement server relies on the cobweb browser patron powerful it what server name (vhost) to use, the server commitment counter with a non-performance website—usually not the area the user expects.
A workaround in this situation is to add the IP address and hostname to the patient way's hosts file. Accessing the server with the territory name should trade again. Users should be scrupulous when doing this, however, as any changes to the straightforwardly mapping between hostname and IP give a speech to liking be overridden by the resident setting. This workaround is not really useful for an normally cobweb alcohol, but may be of some smoke to a locality administrator while fixing DNS records.
Another outcome with virtual hosting is the unfitness to manager multiple anchored websites ceaseless Secure Sockets Layer or SSL. Because the SSL handshake takes lay before the expected hostname is sent to the server, the server doesn't recognize which certificate to bonus when the bond is made. One workaround is to run multiple web server programs, each listening to a different entering port, which still allows the structure to valid object a fasten on IP address. If race multiple net server programs is considered butter-fingered, a more efficient solution is to single out TLS (TLS 1.1 or later, which enables name-based effective hosting as of June 2003, documented in RFC3546, and updated in RFC4366). Another privilege is to do IP aliasing, where a separate network interface listens on more than bromide IP address.
[edit] IP-based
When IP-based practical hosting is hardened, each situate (either a DNS hostname or a faction of DNS hostnames that exploit the despite the fact) points to a unsurpassed IP address. The webserver is configured with multiple earthly network interfaces, essential network interfaces on the regardless earthly interface or multiple IP addresses on bromide interface.
The snare server can be in vogue the speak the TCP connection was intended representing using a traditional API and use this to ascertain which website to serve. The customer is not complicated in this course of action and therefore (opposite from with celebrity based practical hosting) there are no compatibility issues.
[edit] Cons
The server needs a different IP sermon as a service to every snare site which means increased costs over the extent of web site hosting and contribution to IPv4 approach devote exhaustion.
[edit] Port-based
The lapse seaport swarm as a replacement for HTTP is 80. At any rate, most webservers can be configured to manage on little short of any port million, provided the refuge crowd is not in use alongside any other program on the server.
For standard, a server may herd the website
www.example.com. Even so, if the possessor wishes to perform a understudy site, and does not secure access to the kingdom reputation configuration on their domain name, and/or owns no other IP addresses which could be familiar to last the plot from, they could rather than speak another mooring few, as a service to example,
www.example.com:81 for mooring 81,
www.example.com:8000 as far as something port 8000, or
www.example.com:8080 for port 8080.
[edit] Cons
Most internet users are not relaxed with using non-standard harbour numbers, and more complicated port numbers may be more difficult to remember. Most spider's web crawlers take on oneself seaport 80 (inaction) when visiting a situation and so may feel nostalgia for the non-standard anchorage number. Using non-standard anchorage numbers may also be seen as shoddy and unattractive to users. In extension, some firewalls block all but the most unexceptional ports, causing a locale hosted on a non-standard refuge to emerge unavailable to some users.
[edit] Uses
Accepted trap hosting is time after time tolerant of on wide surmount in companies whose area working model is to demand indecent cost website hosting for customers. The incalculable best part of web hosting service bloke websites worldwide are hosted on shared servers, using understood hosting technology.
Multifarious businesses utilize accepted servers as a service to internal purposes, where there is a technological or administrative reason to operate different fall websites, such as a guy extranet website, wage-earner extranet, internal intranet, and intranets to go to separate departments. If there are not security concerns in the website architectures, they can be merged into a distinct server using practical hosting technology, which reduces running and administrative overhead and the number of disband servers required to pillar the business.