Ungayisetha kanjani i-Apache virtual host ku-Debian

Siyaqhubeka nokudlala noDebian kuseva yethu yokuhlola, namuhla sanikezwa isidingo sokumisa i-Virtual Host, ngakho-ke ngosizo lomhlahlandlela waseyunivesithi ngakha igxathu negxathu ukulungisa ama-Apache virtual host kuDebian.

Faka i-apache

sudo apt-get update
sudo apt-get install apache2

Dala ifayela elisha le-Virtual host

Landa ifayela lethu lokuhlola virtual.conf kusuka ku- lapha. Ngemuva kwalokho kufanele sikopishe ifayela virtual.conf kufolda /etc/apache2/sites-available/ kwesizinda esisha.

cp virtual.conf /etc/apache2/sites-available/

Uma kudingeka, singashintsha igama lefayela. (Ukuhlola sizosebenzisa igama: virtual )

Okulandelayo kufanele sishintshe izinkambu ezilandelayo ServerName, ServerAdmin, DocumentRoot

Nika amandla amafayela wokubamba we-Virtual amasha:

a2ensite virtual.conf

Qala kabusha i-Apache:

service apache2 restart

Configurar el archivo de hosts local

Vula ifayela hosts yalo thayipha nano /etc/hosts

Faka i-IP entsha yeseva yakho ezansi kwefayela njenge-localhost.

Kuzoba yinto enjengale:

127.0.0.1 localhost 127.0.0.10 wp 127.0.0.11 yii # Imigqa elandelayo iyadingeka kuma-host ane-IPv6 :: 1 localhost ip6-localhost ip6-loopback ff02 :: 1 ip6-allnodes ff02 :: 2 ip6-allrouters

Ngalokhu, i-Virtual Host eDebian izolungiswa kahle


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-5, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   3 kusho

    Sawubona, sawubona

    Uyacelwa ukuthi ngikubuze okokufundisa lapho uchaza khona ukuthi kusuka kwi-Intanethi (noma yikuphi emhlabeni) ungafinyelela kanjani amakhasi we-virtual host ngaphandle kokusebenzisa amasevisi avela eceleni?

  2.   USbani-bani kusho

    Isixhumanisi se-virtual.conf asisebenzi.

  3.   UJohan Esteban kusho

    Okokufundisa akuphelele 0/10

  4.   fjmadrid kusho

    Sawubona,
    ifayela le-virtual.conf ngeke lisalandwa. Sicela ubuyekeze isixhumanisi.
    Ngiyabonga

  5.   Ekaitz kusho

    Ayikwazi ukufinyelela ukunamathisela kusuka ku-virtual.conf. Yebo, ukukhangisa, ingubo ...