Виртуален хост

Определение

Virtualhosting,alsocalled"websitespace",istodivideaphysicalserverrunningontheInternetintomultiple"virtual"servers.Virtualhosttechnologyhasgreatlypromotedtheapplicationandpopularizationofnetworktechnology.Atthesametime,therentalserviceofvirtualhostshasbecomeaneweconomicformintheInternetage.

Заден план

Therearenearly100millioncomputersinterconnectedontheInternet.Nomatterwhattypeofcomputertheyare,whatoperatingsystemtheyrun,andwhatsoftwaretheyuse,theycanbeclassifiedintotwocategories:customersMachinesandservers.

  • Client:Theclientisamachinethataccessesotherhosts.WhenaccessingtheInternetthroughanISP(InternetServiceProvider),theclientisassignedatemporaryIPaddress.UsingthistemporaryIPaddress,theclientcanobtaininformationontheInternet.Afterthenetworkisdisconnected,theclientThemachinewasseparatedfromtheInternet,andtheIPaddresswastakenback.

  • Server:Aserverisacomputerthathashighcomputingpowerandcanbeusedbymultipleusers.Itisusuallycalledahost.Therearemanydifferencesbetweentheserverandtheclient.Forexample,theclientusuallyonlyservesoneuseratatime.Theclientisusedbytheuserthroughtheterminal,andtheserverisusedbytheclientuserthroughthenetwork.Comparedwiththeclient,theserverneedstoworkcontinuouslyinanenvironmentof7×24hours.ThismeansthattheserverneedsmorestabilitytechnologyRAS(Reliability,AvailabilityandServiceability,reliability,availability,applicability),suchassupportingtheuseofECC(ErrorCheckandCorrection)memory.

Технически характеристики

VirtualhostingtechnologyisatechnologyusedbyInternetserverstosaveserverhardwarecosts.VirtualhostingtechnologyismainlyusedinHTTP(HypertextTransferProtocol).,HypertextTransferProtocol)service,whichlogicallydividesacertainoralloftheservicecontentofaserverintomultipleserviceunits,whichareexternallyrepresentedasmultipleservers,soastomakefulluseofserverhardwareresources.

Virtualhostusesspecialsoftwareandhardwaretechnologytodividearealphysicalserverhostintomultiplelogicalstorageunits.Eachlogicalunithasnophysicalentity,buteachlogicalunitcanworkonthenetworklikearealphysicalhost,withaseparateIPaddress(orsharedIPaddress),anindependentdomainname,andacompleteInternetserver(supportWWW,FTP,E-mail,etc.)functions.

Thekeytechnologyofvirtualhostingisthatevenifdifferentserverprogramsopenedformultipleusersarerunningonthesamehardwareandthesameoperatingsystem,theydonotinterferewitheachother.Eachuserhashisownpartofthesystemresources(IPaddress,documentstoragespace,memory,CPU,etc.).Eachvirtualhostiscompletelyindependent.Fromtheoutside,eachvirtualhostandasinglehostbehaveexactlythesame.Therefore,thisvirtualizedlogicalhostisvividlycalleda"virtualhost".

Предимства

Ниска цена

Comparedwiththepurchaseofanindependentserver,thecostofwebsiteconstructionisgreatlyreduced,whichprovidesgreatconvenienceforthepopularizationofsmallandmedium-sizedwebsites.

Thevirtualhostsarecompletelyindependent.Fromtheoutsideworld,eachvirtualhostisexactlythesameasanindependenthost.Sincemultiplevirtualhostssharetheresourcesofarealhost,thehardwarecosts,networkmaintenancecosts,andcommunicationlinecoststhateachvirtualhostuserbearsaregreatlyreduced.

Manycompaniesusethismethodtobuildwebsites,whichnotonlygreatlysavesthecostofbuyingmachinesandrentingdedicatedlines,butalsothewebsiteservermanagementissimple.Securitymeasuressuchassoftwareconfiguration,anti-virus,andanti-attackarealldonebyprofessionalTheserviceproviderprovides,whichgreatlysimplifiesthecomplexityofservermanagement;atthesametime,thereisnoneedtoworryaboutthetechnicalproblemsofusingandmaintainingtheserver,andthereisnoneedtohirespecializedmanagementpersonnel.

Подобрете ефективността

Intheinitialstageofwebsiteconstruction,ittakesalongtimetoinstalltheoperatingsystemandapplicationsoftwarefromthepurchaseofaserver,whilerentingavirtualhostusuallyonlytakesafewminutestoactivate.Becausethemajorregistereddomainnamequeryserviceprovidershaverealizedthee-commerceoftheentirebusinessprocess,chooseavirtualhostthatsuitsyourneeds,andyoucanopenitimmediatelyafteronlinepayment.

TheemergenceofvirtualhosttechnologyisamajorcontributiontothedevelopmentofInternettechnologyandnetwork.Sincemultiplevirtualhostssharetheresourcesofarealhost,theutilizationrateofserversandcommunicationlinesisgreatlyincreased,makingoneMultiplenetworkIPaddressescanbeconfiguredonaserverwithoutconflict,whichmeansthatpeoplecanusevirtualhoststobuildseveralsiteswithseparatedomainnamesononeserver,insteadofhavingtopurchaseseparatesitestobuildasite.Serversanddedicatedlinesforapplicationwithhugesumsofmoneyareusedasnetworkinformationoutlets.

Недостатъци

Функционални ограничения

Somefunctionsarerestrictedbyserviceproviders,suchasforumprogramsthatmayconsumesystemresources,trafficstatisticsfunctions,etc.Websitedesignneedstoconsiderthefunctionalsupportprovidedbytheserviceprovider,suchasdatabasetype,operatingsystem,etc.Generally,virtualhostsdonothaveaseparateIPaddressinordertoreducecosts,thatis,IPaddressescannotdirectlyaccesswebsites(becausetherearemultiplewebsitescorrespondingtothesameIPaddress)

Скорост на достъп и ограничение на трафика

Differentvirtualhostsonaserverareindependentandmanagedbyusers.However,aserverhostcanonlysupportacertainnumberofvirtualhosts.Whenthisnumberisexceeded,userswillexperienceasharpdropinperformance.

Theaccessspeedofsomevirtualhostwebsitesistooslow.Thismaybecausedbythehostingproviderrentingahosttoalargenumberofwebsites,orserverconfigurationandotherreasons.ThissituationwebsiteIfyoucan’tsolveitbyyourself,itwillhaveanadverseeffectonthenormalvisitofthewebsite;

Someserviceprovidershavecertainrestrictionsonwebsitetraffic,sothatnormalvisitswillnotbepossiblewhenthewebsitehasalargeamountofvisits.

Лоша автономия

Thevirtualhostcannotbeoperatedbythecustomertoinstallsoftwareandremotedesktopatwill.

Предназначение

Удобно управление

Allvirtualhostsareinthesamehost,sotheycansharethesameconfigurationsettings,therebysavingmanagementmanpowerAndcost.

Подобряване на производителността

Virtualhostsinthesamehostcanshareeachother'sassembly(ProcessPool),sotheresponsetimetotheclientcanbeshortened.

Намаляване на разходите

Virtualhostingallowstheresourcesofasingleservertobeusedmoreeffectively,includingmemory,storagespaceorprocessorresources.BecausetheresourcesrequiredtoserveasingleURLareusuallyquitesmallfortheentireserver,thisallowstheserver'sresourcestobeusedmoreeffectively.

Multiplevirtualserverscanbesetuponthesamephysicalserverthroughsoftware,andeachvirtualservercanprovideallthefunctionsoftheserver,sorelativelyspeaking,thecostofeachvirtualserverhasacertaindegreereduce.

Тип изпълнение

Има три основни метода за внедряване: съответствие на URL име (базиран на име), съответствие на IP адрес (базиран на IP) и съответствие на номер на порт (базиран на порт).

Съответствие на URL име (базирано на име)

Съответствие на URL име (базирано на име)istodeterminethecorrespondingservicebyidentifyingtheURLprovidedbytheclient.ThismethodEffectivelyreducetheoccupationoftheIPaddress,butthedisadvantageisthatitmustrelyonthesupportoftheDNSnamemappingservice.Ifthenamemappingserviceisinterrupted,theservicecorrespondingtothenamewillalsobeunavailable.

Кореспонденция на IP адрес (базиран на IP)

Кореспонденция на IP адрес (базиран на IP)referstothesameserver,throughthesameconfigurationsettings,differentIPtomanageMultipleservices.

Базирана на порт кореспонденция (базирана на порт)

ItissimilartoIPaddresscorrespondence,butunderthesameIP,differentPortportnumbersareusedtodistinguishdifferentservices.Inordertoquicklycreatemultiplevirtualhosts.Forexample:

  • 192.168.0.1:80

  • 192.168.0.1:8080

  • 192.168.0.1:8888

However,mostoftheseapplicationsareusedinprivateorexperimentalservicesbecauseuserscannotusethedefaultportnumber(forexampleThedefaultportnumberofthewebserviceis80)tousetheprovidedservice,unlesstheuserknowstheportnumberforprovidingtheservice.

Изберете виртуален хост

  • Хардуерните съоръжения на хоста

  • WhatthevirtualhostproviderownsThevirtualhostcomputerroom,whatsizedatacenterisit,whetherthereisenoughbandwidthforthecomputerroomline,andwhetherthespeedofthevirtualhostwebsiteconnectionmeetsthetrafficbandwidthofallhisvirtualhostcustomersatthesametime.

  • Колко уебсайта са настроени на виртуалния хост

  • Usuallyavirtualhostcanhosthundredstothousandsofwebsites,ifThemorewebsitesthereare,themorepeoplesharethesameserver;incomparison,resourcesaretighter.Generallyrelatedtothemachine'sCPU,memory,etc.IISisgenerally10000/numberofconnectionsperserver.

Related Articles
TOP