Cov txheej txheem:

Dab tsi yog virtual hosting hauv Linux?
Dab tsi yog virtual hosting hauv Linux?

Video: Dab tsi yog virtual hosting hauv Linux?

Video: Dab tsi yog virtual hosting hauv Linux?
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla use for? 2024, Kaum ib hlis
Anonim

Virtual hosting yog ib txoj kev rau hosting ntau lub vev xaib ntawm ib lub tshuab. Muaj ob hom virtual hosting : Raws li lub npe virtual hosting thiab IP-based virtual hosting . IP raws virtual hosting yog ib qho txheej txheem los siv cov lus qhia sib txawv raws li qhov chaw nyob IP thiab chaw nres nkoj tau txais kev thov.

Cov lus nug tseem yog, tus tswv tsev virtual ua haujlwm li cas?

Virtual hosting yog ib txoj hauv kev rau hosting ntau lub npe sau npe (nrog kev sib cais ntawm txhua lub npe) ntawm ib leeg server (los yog pas dej ua ke ntawm servers). Qhov no tso cai rau ib tug server los qhia nws cov peev txheej, xws li lub cim xeeb thiab lub voj voog ntawm cov txheej txheem, tsis tas yuav tsum muaj txhua qhov kev pabcuam muab los siv tib yam tus tswv tsev npe.

Ib tug kuj tseem nug, cov ntaub ntawv virtual hosts nyob qhov twg? Los ntawm lub neej ntawd ntawm Ubuntu systems, Apache Virtual Hosts kev teeb tsa cov ntaub ntawv tau khaws cia rau hauv /etc/apache2/sites-available directory thiab tuaj yeem qhib tau los ntawm kev tsim cov cim txuas mus rau /etc/apache2/sites-enabled directory.

Ntxiv mus, dab tsi yog virtual host server?

Feem ntau abbreviated vhost , a virtual host yog tus muab kev pabcuam Web uas suav nrog server kev ua haujlwm thiab kev pabcuam kev sib txuas hauv Is Taws Nem. A virtual host feem ntau yog siv los ntawm cov tuam txhab lossis cov tib neeg uas tsis xav yuav thiab tswj lawv tus kheej Web servers thiab kev sib txuas hauv Internet.

Kuv yuav tsim ib tus tswv tsev virtual li cas?

Configure lub npe-raws li virtual hosts

  1. Nruab Apache webserver. Nco ntsoov tias koj tau nruab Apache webserver.
  2. Tsim web directory rau txhua tus tswv tsev.
  3. Tsim cov nplooj ntawv web demo rau txhua tus tswv tsev.
  4. Tsim cov ntaub ntawv configuration rau txhua tus tswv tsev.
  5. Qhib cov ntaub ntawv virtual host configuration.
  6. Test Virtual hosts.

Pom zoo: