Virtual hosting

Virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers).[1] This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same host name. The term virtual hosting is usually used in reference to web servers but the principles do carry over to other Internet services.

One widely used application is shared web hosting. The price for shared web hosting is lower than for a dedicated web server because many customers can be hosted on a single server. It is also very common for a single entity to want to use multiple names on the same machine so that the names can reflect services offered rather than where those services happen to be hosted.

There are two main types of virtual hosting, name-based and IP-based. Name-based virtual hosting uses the host name presented by the client. This saves IP addresses and the associated administrative overhead but the protocol being served must supply the host name at an appropriate point. In particular, there are significant difficulties using name-based virtual hosting with SSL/TLS. IP-based virtual hosting uses a separate IP address for each host name, and it can be performed with any protocol but requires a dedicated IP address per domain name served. Port-based virtual hosting is also possible in principle but is rarely used in practice because it is unfriendly to users.

Name-based and IP-based virtual hosting can be combined: a server may have multiple IP addresses and serve multiple names on some or all of those IP addresses. This technique can be useful when using SSL/TLS with wildcard certificates. For example, if a server operator had two certificates, one for *.example.com and one for *.example.net, the operator could serve foo.example.com and bar.example.com off the same IP address but would need a separate IP address for baz.example.net.

Name-based

Name-based virtual hosts use multiple host names for the same IP address.

A technical prerequisite needed for name-based virtual hosts is a web browser with HTTP/1.1 support (commonplace today) to include the target hostname in the request. This allows a server hosting multiple sites behind one IP address to deliver the correct site's content. More specifically it means setting the Host HTTP header, which is mandatory in HTTP/1.1.[2]

For instance, a server could be receiving requests for two domains, www.example.com and www.example.net, both of which resolve to the same IP address. For www.example.com, the server would send the HTML file from the directory /var/www/user/Joe/site/, while requests for www.example.net would make the server serve pages from /var/www/user/Mary/site/. Equally two subdomains of the same domain may be hosted together. For instance, a blog server may host both blog1.example.com and blog2.example.com.

The biggest issue with name-based virtual hosting is that it is difficult to host multiple secure websites running SSL/TLS. Because the SSL/TLS handshake takes place before the expected hostname is sent to the server, the server doesn't know which certificate to present in the handshake. It is possible for a single certificate to cover multiple names either through the "subjectaltname" field or through wildcards but the practical application of this approach is limited by administrative considerations and by the matching rules for wildcards. There is an extension to TLS called Server Name Indication, that presents the name at the start of the handshake to circumvent that issue, except for some older clients (in particular Internet Explorer on Windows XP or older Android versions) which do not implement SNI.

Furthermore, if the Domain Name System (DNS) is not properly functioning, it is difficult to access a virtually-hosted website even if the IP address is known. If the user tries to fall back to using the IP address to contact the system, as in http://10.23.45.67/, the web browser will send the IP address as the host name. Since the web server relies on the web browser client telling it what server name (vhost) to use, the server will respond with a default website—often not the site the user expects.

A workaround in this case is to add the IP address and host name to the client system's hosts file. Accessing the server with the domain name should work again. Users should be careful when doing this, however, as any changes to the true mapping between host name and IP address will be overridden by the local setting. This workaround is not really useful for an average web user, but may be of some use to a site administrator while fixing DNS records.

IP-based

When IP-based virtual hosting is used, each site (either a DNS host name or a group of DNS host names that act the same) points to a unique IP address. The webserver is configured with multiple physical network interfaces, virtual network interfaces on the same physical interface or multiple IP addresses on one interface. The web server can either open separate listening sockets for each IP address, or it can listen on all interfaces with a single socket and obtain the IP address the TCP connection was received on after accepting the connections. Either way, it can use the IP address to determine which website to serve. The client is not involved in this process and therefore (unlike with name-based virtual hosting) there are no compatibility issues.

The downside of this approach is the server needs a different IP address for every web site. This increases administrative overhead (both assigning addresses to servers and justifying the use of those addresses to internet registries) and contributes to IPv4 address exhaustion.

Uses

Virtual web hosting is often used on a large scale in companies whose business model is to provide low cost website hosting for customers. The vast majority of web hosting service customer websites worldwide are hosted on shared servers, using virtual hosting technology.

Many business companies utilize virtual servers for internal purposes, where there is a technological or administrative reason to operate several separate websites, such as a customer extranet website, employee extranet, internal intranet, and intranets for different departments. If there are no security concerns in the website architectures, they can be merged into a single server using virtual hosting technology, which reduces management and administrative overhead and the number of separate servers required to support the business.

See also

References

  1. ^ "How many active sites are there?". Netcraft. Archived from the original on 30 April 2013. Retrieved 14 July 2018. Circa 1996-1997, the number of distinct IP addresses would have been a good approximation to the number of real sites, since hosting companies would typically allocate an IP address to each site with distinct content, and multiple domain names could point to the IP address being used to serve the same site content. However, with the adoption of HTTP/1.1 virtual hosting, and the availability of load balancing technology it is possible to reliably host a great number of active sites on a single (or relatively few) IP addresses.
  2. ^ Fielding, Roy T.; Reschke, Julian (June 2014). Fielding, R.; Reschke, J. (eds.). "Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing". IETF. doi:10.17487/RFC7230. Retrieved 2014-07-24. {{cite journal}}: Cite journal requires |journal= (help)

Read other articles:

Slavic folk and Christian holiday MaslenitsaMaslenitsa, Boris Kustodiev, 1919 (Isaak Brodsky Museum, St. Petersburg)Also calledButter Week, Crepe week, Cheesefare Week, Syropust, Kolodiya, MasnytsiaObserved byEastern Slavs Mostly Russia, Ukraine and Belarus, as well as Russian, Ukrainian and Belarusian diaspora communitiesTypeEthnicSignificanceSeeing off winter, last week before Great LentCelebrationsMaking blini (crepes), making visits, sleigh rides, dressing up, bonfires, snowball figh...

Artikel ini membahas mengenai bangunan, struktur, infrastruktur, atau kawasan terencana yang sedang dibangun atau akan segera selesai. Informasi di halaman ini bisa berubah setiap saat (tidak jarang perubahan yang besar) seiring dengan penyelesaiannya. Sama Tower merupakan sebuah pencakar langit yang sedang dibangun di sepanjang Sheikh Zayed Road di Dubai, Uni Emirat Arab. Menara ini akan memiliki tinggi 240 meter (800 kaki) dan 51 tingkat. Konstruksinya diperkirakan akan selesai pada tahun 2...

Overview of the culture of Manitoba (Canada) This article needs to be updated. Please help update this article to reflect recent events or newly available information. (June 2020) The flag of Manitoba flying in downtown WinnipegPart of a series on theCulture of Canada History Canadians Ethnicity Folklore Free expression Identity Immigration Holidays Languages Multiculturalism Symbols Royal Protectionism Women Values Topics Architecture Art Comics Quebec Crime Cuisine Festivals Humour Law Lite...

Catedral de la Transfiguración de Odesa Bien patrimonial cultural de Ucrania LocalizaciónPaís UcraniaLocalidad Plaza SobornaUbicación OdesaCoordenadas 46°28′59″N 30°43′52″E / 46.483177777778, 30.731041666667Información generalEstilo arquitectura neoclásica, clasicismo y arquitectura eclécticaConstrucción 14 de noviembre de 1795Detalles técnicosMaterial ladrilloInformación religiosaCulto Iglesia ortodoxa ucranianaDiócesis Eparquía de Odesa e Izmaílhttp://...

Дихтинецька стінка(пам'ятка природи) Дихтинецька стіка і залишки старого мосту через ПутилкуДихтинецька стіка і залишки старого мосту через Путилку 48°03′05″ пн. ш. 25°02′35″ сх. д. / 48.051472° пн. ш. 25.04306° сх. д. / 48.051472; 25.04306Координати: 48°03′05″ п

Igreja Protestante Unida da França Classificação Protestante Orientação Igreja Unida (Calvinista e Luterana) Associações Conselho Mundial das Igrejas,[1] Comunhão Mundial das Igrejas Reformadas[2] e Federação Luterana Mundial[3] Área geográfica França (exceto Alsácia e Mosela) Origem 2013 (10 anos) Congregações 1000 (2020) Membros 250.000 (2020) Ministros 500 (2020) Site oficial www.eglise-protestante-unie.fr A Igreja Protestante Unida da França -IPUF- (em francês: ...

Jalan Halim Perdanakusuma atau Jalan Halim PK adalah nama salah satu jalan utama Jakarta. Nama jalan ini diambil dari nama seorang Pahlawan Nasional yaitu Halim Perdanakusuma. Jalan ini membentang dari Cawang, Kramat Jati, Jakarta Timur sampai Bandar Udara Halim Perdanakusuma, Halim Perdanakusuma, Makasar, Jakarta Timur. Jalan ini melintasi kelurahan Halim Perdanakusuma, Makasar, Jakarta Timur Jalan ini merupakan akses utama dari Jalan Tol Dalam Kota menuju Bandar Udara Halim Perdanakusuma da...

Lepa BrenaNama asalЛепа БренаLahirFahreta Jahić20 Oktober 1960 (umur 63)Tuzla, Republik Sosialis Bosnia dan Herzegovina, Republik Federal Sosialis YugoslaviaNama lainFahreta ŽivojinovićPekerjaan Penyanyi pemeran manajer bakat pengusaha sutradara Tahun aktif1980–kiniTinggi180 m (590 ft 7 in)Suami/istriSlobodan Živojinović ​ ​(m. 1991)​Anak2Karier musikGenre Pop folk turbo-folk Instrumen vocals Label PGP-RTB D...

Alphabets used for Albanian For the alphabet formerly used in the Caucasus, see Caucasian Albanian script. The Albanian alphabet (Albanian: alfabeti shqip) is a variant of the Latin alphabet used to write the Albanian language. It consists of 36 letters:[1] Capital letters A B C Ç D Dh E Ë F G Gj H I J K L Ll M N Nj O P Q R Rr S Sh T Th U V X Xh Y Z Zh Lower case letters a b c ç d dh e ë f g gj h i j k l ll m n nj o p q r rr s sh t th u v x xh y z zh IPA value a b ts tʃ d ð e ə...

Yang MuliaAlexander De CrooDe Croo pada tahun 2017Perdana Menteri Belgia ke-53PetahanaMulai menjabat 1 Oktober 2020Penguasa monarkiPhilippeWakilVincent Van PeteghemGeorges GilkinetPetra De SutterSophie WilmèsVincent Van QuickenbornePierre-Yves DermagneFrank VandenbrouckePendahuluSophie WilmèsMenteri KeuanganMasa jabatan9 Desember 2018 – 1 Oktober 2020Perdana MenteriCharles MichelSophie WilmèsPendahuluJohan Van OvertveldtPenggantiVincent Van PeteghemDeputi Perdana Menteri Bel...

Chinese TV series or program 1 vs. 100Chinese以一敌百 GenreGame showCreated byEndemolStarringWang Han (season 1)Ren Jun [zh] (season 2)Country of originChinaNo. of episodes16 (season 1)35 (season 2)ProductionRunning timeabout 90 minutes per episode (inc. commercials)Original releaseNetworkHunan Satellite TelevisionReleaseMarch 5, 2008 (2008-03-05) –December 23, 2010 (2010-12-23) In 2008 and 2010, Hunan Satellite Television produced the Chinese version of...

Germanwings IATA ICAO Kode panggil 4U GWI GERMANWINGS Didirikan1997 (sebagai subsidari Eurowings)2002 (perusahaan terpisah)Berhenti beroperasi7 April 2020Pusat operasi Bandara Berlin Tegel Bandara Köln-Bonn Bandara Dortmund Bandara Düsseldorf Bandara Hamburg Bandara Hannover Bandara Stuttgart Program penumpang setia Boomerang Club Miles & More AliansiStar Alliance (affiliate)Armada81Tujuan86Perusahaan indukDeutsche Lufthansa AGKantor pusatCologne, GermanyTokoh utamaThomas Winkelmann (CE...

German politician (1940-1992) Lutz StavenhangenMember of the BundestagIn office1972–1992Minister of State at the Foreign OfficeIn office1985–1987Preceded byAlois MertesSucceeded byIrmgard SchwaetzerMinister of State in the Federal ChancelleryIn office1987–1991Commissioner for the Federal Intelligence ServicesIn office3 May 1989[1] – 2 December 1991Preceded byWaldemar SchreckenbergerSucceeded byBernd Schmidbauer Personal detailsBorn(1940-05-06)6 May 1940Jena, Thuringia...

Peta wilayah Komune Foligno (merah) di Provinsi Perugia (emas), Umbria, Italia. Foligno adalah komune yang terletak di Provinsi Perugia, Italia. Foligno memiliki luas sebesar 263 km². Komune ini memiliki penduduk sebesar 56.688 jiwa. Kota ini memiliki kode pos 06034, 06030 dan 06037. lbsKomune di Provinsi Perugia, UmbriaAssisi • Bastia Umbra • Bettona • Bevagna • Campello sul Clitunno • Cannara • Cascia • Castel Ritaldi • Castiglione del Lago • Cerreto di Spoleto • C...

Monument commemorating the 20th anniversary of the Douzelage on 3 September 2011 in Marsaskala, Malta Douzelage is a town twinning association with one town from each of the member states of the European Union and the United Kingdom. Name The name is a portmanteau of the French words douze for twelve and jumelage for twinning and stands for the twelve founder members, one for each European Union member state in 1991, when the Douzelage Charter was signed in Granville, France. Although the mem...

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Hollow Pantera song – news · newspapers · books · scholar · JSTOR (February 2007) (Learn how and when to remove this template message) 1992 single by PanteraHollowSingle by Panterafrom the album Vulgar Display of Power Released1992Recorded1991Length5:48Son...

For the multiplex in Thornbury, near Bradford, see Odeon Leeds-Bradford. Cinema & former cinema in West Yorkshire, England Bradford Odeon is the name applied to two different cinemas in central Bradford, West Yorkshire, England. One, in Godwin Street, was built in 1930 and survives; the other, in Manchester Road, was built in 1938 and demolished in 1969. Godwin Street building A 1977 view of the New Victoria / Gaumont as the Odeon, with two West Yorkshire PTE buses passing in front The ci...

American basketball player For the Star Trek character, see Thomas Riker. Tom RikerRiker as a sophomore at South CarolinaPersonal informationBorn (1950-02-28) February 28, 1950 (age 73)Rockville Centre, New YorkNationalityAmericanListed height6 ft 10 in (2.08 m)Listed weight225 lb (102 kg)Career informationHigh schoolSaint Dominic (Oyster Bay, New York)CollegeSouth Carolina (1969–1972)NBA draft1972: 1st round, 8th overall pickSelected by the New York KnicksPlay...

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Februari 2023. SDN Cipinang Muara 19Sekolah Dasar Negeri Cipinang Muara 19InformasiJenisNegeriNomor Statistik Sekolah101016403086Nomor Pokok Sekolah Nasional20108550Jumlah siswa195 2010StatusAktifAlamatLokasiJln.Cipinang Indah Raya No.51, Jakarta Timur, DKI Jak...

Scottish curator and historian Elspeth KingDr Elspeth King holding a bust of Robert Owen (1771-1858), co-operator and reformerBornLochore, Fife, ScotlandNationalityScottishAlma materUniversity of LeicesterOccupation(s)Social historian, curator and writerKnown forCurator at People's Palace, Glasgow and Director of the Stirling Smith Art Gallery and Museum Stirling Smith Museum, of which Dr King was Director Dr Elspeth King is a Scottish curator, writer and social historian. She is kn...