Yadda ake saita Apache host host akan Debian

Muna ci gaba da wasa tare da Debian akan sabar gwajin mu, yau an gabatar mana da bukatar saita Virtual Host, don haka da taimakon jagorar jami'a na gina mataki-mataki don daidaita masu karbar bakuncin Apache a Debian.

Sanya apache

sudo apt-get update
sudo apt-get install apache2

Irƙiri sabon Fayil mai masaukin baki

Zazzage fayil ɗin mu na foju.conf daga nan. Sannan dole ne mu kwafa fayil din virtual.conf zuwa babban fayil /etc/apache2/sites-available/ don sabon yanki.

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

Idan an buƙata, za mu iya canza sunan fayil ɗin. (Domin gwaji zamuyi amfani da suna: virtual )

Gaba dole ne mu canza waɗannan layukan ServerName, ServerAdmin, DocumentRoot

Enable sabon Virtual host files:

a2ensite virtual.conf

Sake kunna Apache:

service apache2 restart

Configurar el archivo de hosts local

Bude fayil din hosts don shi iri nano /etc/hosts

Theara sabon IP na sabarku a ƙasan fayil ɗin azaman localhost.

Zai zama wani abu kamar haka:

127.0.0.1 localhost 127.0.0.10 wp 127.0.0.11 yii # Lines masu zuwa suna da kyau ga masu karɓar bakuncin IPv6 :: 1 localhost ip6-localhost ip6-loopback ff02 :: 1 ip6-allnodes ff02 :: 2 ip6-allrouter

Tare da wannan, Mai Gidan Gida a cikin Debian za a daidaita shi sosai


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

5 comments, bar naka

Bar tsokaci

Your email address ba za a buga.

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   3 m

    Barka dai, ina kwana

    Da fatan zan tambaye ku koyawa inda kuka bayyana yadda daga Intanet (ko'ina cikin duniya) zaku iya samun damar shafukan mai masaukin baki ba tare da amfani da sabis na ɓangare na uku ba?

  2.   Saboda haka-don haka m

    Hanyar haɗin yanar gizo ta virtual.conf baya aiki.

  3.   johan esteban m

    Koyarwar bata cika 0/10 ba

  4.   fjmadrid m

    Sannu,
    ba za a iya sake sauke fayil ɗin kama-da-wane ba. Da fatan za a sabunta hanyar haɗin.
    Gode.

  5.   kayi m

    Ba za a iya samun damar liƙa daga virtual.conf ba. Ee, talla, bargo ...