Sida loo beddelo Dekadda Dhegeysiga ee Server-ka Apache

Toddobaadkii hore, waxaan la kulmay server leh HTTPS dekedeeda 80 oo uu horey u qaatay software kale. "Dambiilaha" wuxuu ahaa wax lala yaabo ah software kale oo server-ka ah, kaas oo ah IIS . Sababtoo ah isticmaalayaasha IIS waxay horeyba ula qabsadeen dekedda caadiga ah, rakibaadda Apache ma lahayn wax doorasho ah oo aan ahayn inay isticmaalaan deked yar oo caan ah HTTP , kiiskan dekedda 81.

Waxaa laga yaabaa inaad weydiiso sababta ay dekedda 80 muhiim ugu tahay http? Hagaag, mid ahaan, waa u fududahay isticmaalka isticmaalayaasha. Haddii aad daalacanayso server-ka shabakadda oo aad ku dhegaysanayso deked aan ahayn dekedda 80, waxaad u baahan doontaa inaad ku darto lambarka dekedda iyo ciwaanka.

Wax sidan oo kale ah: http://yourdomain.com:81/ haddii dekedda 81 ay tahay seerfarka mareegtaada. Haddii aad isticmaasho dekedda 80 markaas uma baahnid inaad ku qorto dekedda 80 cinwaanka maadaama ay tahay dekedda caadiga ah ee HTTP . Sida laga soo xigtay http://www.tcpipguide.com

"Si looga fogaado fowdo, software-ka fuliya habka server-ka gaarka ah wuxuu si caadi ah u isticmaalaa lambarka dekedda ee loo qoondeeyey qalab kasta oo IP ah, si macaamiishu si fudud u heli karaan… browser kasta oo internetka ah "wuxuu og yahay" in shabakadaha loogu talagalay inay dhagaystaan ​​codsiyada loo soo diro dekedda. 80(“To avoid chaos, the software that implements a particular server process normally uses the same reserved port number on every IP device, so clients can find it easily… Every Web browser just “knows” that websites are designed to listen for requests sent to port 80”)

Marka xaqiiqdaas la dejiyo, aan aragno sida aan u bedeli karno dekedda Apache . Marka hore ka raadi faylka httpd.conf gudaha Apache > conf folder.

sawir

httpd.conf waa fayl qoraal ah oo ay adeegsadaan dhammaan fulinta Apache , marka beddelka Unix Apache ama rakibaadda Windows Apache waxaa loo sameeyaa si la mid ah - iyada oo loo marayo faylka qaabeynta. (Windows Apache)Fur faylka adoo isticmaalaya tifaftiraha qoraalka aad jeceshahay oo raadi laynka leh "Dhagayso 80":

sawir

Xariiqdani waxay qeexaysaa Apache si aad u dhageysato dekedda 80. Waxa kaliya ee ay tahay inaad sameyso waa u beddelka dekedda 80 deked kasta oo aad rabto inaad isticmaasho. Hubi in dekedda aad isticmaali doonto ay tahay deked bilaash ah oo aanay horay u qaadan adeegyo kale. Akhri hagahayaga wax ku saabsan iskaanka dekedda bilaashka ah(free port scanner) haddii aadan hubin.

Markaad tafatirto faylka, kaydi oo dib u bilow Apache(Apache) . Si aad u tijaabiso haddii aad hore u isticmaalaysay dekedda cusub ka baadh URL dekeddii aad isticmaashay. Tusaale ahaan, haddii aad u soo gashay dekedda 81 sida dekedda cusub, URL cusub waa inuu noqdaa http://yourdomain:81 .

Habka kale ee aan ka akhriyay internetka ayaa wax yar ka duwan. Haddii tan kore ay ku shaqeyn waayaan, isku day inaad /etc/apache2/ports.confDhegeysiga(Listen) halkaas oo aad u beddesho wax sida Dhageyso 81(Listen 81) .

Marka xigta, aad /etc/apache2/sites-enabled/000-default.conf oo u beddel khadka kowaad VirtualHost *: 81 . Dib u bilaw Apache(Restart Apache) oo waa inaad awood u leedahay inaad booqato domainka adigoon ku qorin lambarka dekedda. Apache waa inuu si toos ah ugu jiheeyaa /var/www/html. Ku raaxayso!



About the author

Waxaan ahay mid aad loogu taliyay Windows 10 khabiir, waxaanan ku takhasusay inaan dadka ka caawiyo inay shakhsiyeeyaan muuqaalkooda kumbuyuutarka oo ay ka dhigaan qalabkooda Xafiis kuwo saaxiibtinimo leh. Waxaan u isticmaalaa xirfadahayga si aan uga caawiyo dadka kale siyaabaha ugu waxtarka badan ee lagula shaqeeyo Microsoft Office, oo ay ku jiraan sida loo qaabeeyo qoraalka iyo sawirada daabacaadda internetka, sida loo abuuro mawduucyo gaar ah oo loogu talagalay Outlook, iyo xitaa sida loo habeeyo muuqaalka shaqada ee miiska kombuyuutar.



Related posts