Esi hazie ngwa ngwa Apache na Debian

Anyị na-aga n'ihu na-egwuri egwu na Debian na sava ule anyị, taa e gosipụtara anyị mkpa ịhazigharị Onye Nwekọrịta Ahụ, ya mere site n'enyemaka nke ndu mahadum m wuru otu nzọ ụkwụ iji hazie Apache mebere ụsụụ ndị agha na Debian.

Wụnye apache

sudo apt-get update
sudo apt-get install apache2

Mepụta ọhụrụ Virtual usu faịlụ

Download nnwale anyị mebere.conf faịlụ site na Ebe a. Mgbe ahụ, anyị ga-edepụta faịlụ ahụ virtual.conf na folda ahụ /etc/apache2/sites-available/ maka ngalaba ọhụrụ.

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

Ọ bụrụ na achọrọ, anyị nwere ike ịgbanwe aha faịlụ ahụ. (Maka ule, anyị ga-eji aha ahụ: virtual )

Ọzọ anyị ga-agbanwe mpaghara ndị a ServerName, ServerAdmin, DocumentRoot

Kwado ndị ọrụ ọhụụ ọhụrụ mebere:

a2ensite virtual.conf

Malitegharịa ekwentị Apache:

service apache2 restart

Configurar el archivo de hosts local

Mepee faịlụ hosts maka ya pịnye nano /etc/hosts

Tinye IP ọhụrụ nke ihe nkesa gị na ala nke faịlụ ahụ dị ka localhost.

Ọ ga - abụ ihe dịka nke a:

127.0.0.1 localhost 127.0.0.10 wp 127.0.0.11 yii # Usoro ndị a bụ ihe na-achọsi ike maka IPv6 ndị nwere ike ịnabata :: 1 localhost ip6-localhost ip6-loopback ff02 :: 1 ip6-allnodes ff02 :: 2 ip6-allrouter

Na nke a, a ga-edozi Virtual Host na Debian


Ọdịnaya nke isiokwu agbaso ụkpụrụ anyị nke ụkpụrụ nduzi. Kpesa mmejọ pịa ebe a.

Ihe 5 kwuru, hapụ nke gị

Hapu okwu gi

Adreesị email gị agaghị bipụtara. Chọrọ ubi na-akara na *

*

*

  1. Rụ ọrụ maka data: Miguel Ángel Gatón
  2. Nzube nke data: Nchịkwa SPAM, njikwa okwu.
  3. Ikike: Nkwenye gị
  4. Nkwurịta okwu nke data: Agaghị agwa ndị ọzọ data ahụ ma ọ bụghị site na iwu.
  5. Nchekwa data: Ebe nchekwa data nke Occentus Networks (EU) kwadoro
  6. Ikike: Oge obula inwere ike igbachi, weghachite ma hichapụ ihe omuma gi.

  1.   3 dijo

    Ndewo, ụtụtụ ọma

    Biko ana m arịọ gị maka nkuzi ebe ị na-akọwa etu esi esi ịntanetị (ebe ọ bụla n'ụwa) ị nwere ike ịnweta ibe nke mebere ndị ọbịa na-enweghị iji ọrụ ndị ọzọ?

  2.   Na-na-mere dijo

    Njikọ Virtual.conf anaghị arụ ọrụ.

  3.   Johan Esteban dijo

    Ihe nkuzi a ezughi oke 0/10

  4.   mmmmmmmmmmmm dijo

    hello,
    enweghị ike ibudata faịlụ virtual.conf ahụ. Biko melite njikọ ahụ.
    Daalụ.

  5.   Ekaitz dijo

    Enweghị ike ịnweta mado site na virtual.conf. N'ezie, mgbasa ozi, blanket ...