Yog tias koj muaj lub vev xaib loj dhau rau kev lag luam web host lossis koj xav tuaj yeem hloov pauv sai ntawm koj lub vev xaib, koj yuav xav sim ua haujlwm koj tus kheej lub web server ntawm lub khoos phis tawj koj tab tom saib nplooj ntawv no los ntawm. Phau ntawv qhia no yuav qhia rau koj hauv tsev web server cov hauv paus thiab tsis qhia koj yuav ua haujlwm nrog cov software tshwj xeeb li cas.
Cov kauj ruam
Kauj Ruam 1. Nrhiav koj lub web server computer
Lub khoos phis tawj yuav tsum muaj peev xwm khaws ntau cov ntaub ntawv. Tus processor tsis tseem ceeb heev. Yog tias koj muaj lub router, lub khoos phis tawj yuav tsum txuas ncaj qha rau lub router ntawd thiab tsis yog wireless kom txo qis cov neeg rau zaub mov poob qis.
Kauj Ruam 2. Tau txais qhov program web server zoo
Qhov kev zov me nyuam khiav lub web server yog li nws tseem ceeb heev. Yog tias ua tau, nrhiav qhov program uas tuaj yeem ua haujlwm yav tom ntej yam tsis ua rau koj lub computer siv tsis tau. Ib ntawm lub vev xaib nrov tshaj plaws yog Apache.
Kauj Ruam 3. Kho lub web server
Feem ntau qhov web server program muaj phau ntawv qhia yuav ua li cas.
Kauj Ruam 4. Tsim cov nplooj ntawv tseem ceeb los sim cov server
Nco ntsoov tias koj muab cov ntawv no tso rau hauv koj lub vev xaib server cov ntaub ntawv thiab npe nws yog ib qho ntawm cov ntaub ntawv ntsuas.
Kauj ruam 5. Txheeb xyuas tias koj tuaj yeem pom lub vev xaib los ntawm https://127.0.0.1/. Yog tias koj pom lub xaib txuas ntxiv mus rau theem tom ntej. Yog tias koj lub server tsis ua haujlwm ntawm chaw nres nkoj 80 ces sim koj lub xaib ntawm https://127.0.0.1:portnumber/. Tej zaum koj yuav xav rov teeb tsa koj lub web server yog tias koj tsis tuaj yeem pom lub xaib no txhua.
Kauj ruam 6. Tau txais phooj ywg los sim koj lub xaib ntawm https:// yourWANip/. Yog tias nws/nws pom lub xaib ntawd txuas ntxiv mus. Yog tsis yog, tshawb xyuas qee cov lus qhia.
Kauj Ruam 7. Yuav ib lub npe thiab teeb nws rau koj li WAN ip
Yog tias koj muaj ip muaj zog, nco ntsoov tias tus sau npe muaj cov kev pabcuam DNS nquag.
Kauj Ruam 8. Ua koj lub xaib
Yog tias koj xav siv cov ntawv sau-sab koj yuav xav tau teeb tsa cov ntawv thov thiab teeb tsa lawv hauv koj lub server.
Lub tswv yim
- Khaws koj lub computer khiav txhua lub sijhawm. Koj tuaj yeem tua lub monitor lossis yog lub web server program ua haujlwm tom qab, koj tuaj yeem tso koj lub computer "tsaug zog".
- Yog tias leej twg sab nraum koj lub network tsis tuaj yeem pom koj lub vev xaib ntawm https:// yourWANip/thiab koj nyob tom qab lub router koj yuav xav tau chaw nres nkoj rau pem hauv ntej. Txij li routers sib txawv muaj ntau txoj hauv kev los ua qhov no. Tham nrog phau ntawv qhia uas tuaj nrog koj lub router lossis tshawb xyuas koj lub router ntawm Google.
- Tej zaum koj yuav tsis tuaj yeem pom koj tus kheej lub vev xaib siv tus sau koj yuav. Koj yuav tsum pom nws los ntawm https://127.0.0.1/ lossis https:// yourLANip/.
- Koj kuj tseem tuaj yeem pom koj lub vev xaib ntawm https:// localhost/.
- Yog tias koj tsis tuaj yeem pom koj lub vev xaib ntawm https://127.0.0.1/ koj yuav xav tau thaiv qhov chaw nres nkoj 80 los ntawm koj lub firewall.
Lus ceeb toom
- Txheeb nrog koj tus ISP kom paub tseeb tias koj raug tso cai kom muaj lub server hauv tsev. Qee tus thov kom koj siv lwm qhov chaw nres nkoj lwm qhov 80. Yog li koj yuav xav teeb tsa koj lub vev xaib kom mloog lwm lub chaw nres nkoj.
- Tsis txhob tso cov ntaub ntawv loj rau rub tawm, qhov no yuav ua rau koj lub khoos phis tawj qeeb qeeb hauv is taws nem.