Cov txheej txheem:

Apache mloog qhov chaw nres nkoj twg?
Apache mloog qhov chaw nres nkoj twg?

Video: Apache mloog qhov chaw nres nkoj twg?

Video: Apache mloog qhov chaw nres nkoj twg?
Video: Kev hlub tsis ncaj ncees.10/15/2017 2024, Tej zaum
Anonim

nqa 80

Ib sab ntawm no, kuv yuav ua li cas thiaj tau Apache mloog ntawm chaw nres nkoj 8080?

Configure Apache Lub Vev Xaib kom Siv Ntau Qhov Chaw

  1. Cov ntsiab lus: Hauv kuv qhov piv txwv, kuv tau khiav Apache ntawm Chaw nres nkoj 80 ntawm ib tus IP.
  2. Kauj ruam 1: Qhib Apache configuration File httpd.conf (ntawm kuv lub qhov rais host, nws nyob ntawm no: "c: Program FilesApache GroupApache2conf")
  3. Kauj ruam 2: Nrhiav kab: Mloog 80 thiab ntaus Mloog 8080 ntawm kab tom ntej:

Ib tug kuj yuav nug, Kuv yuav ua li cas khiav Apache ntawm qhov chaw nres nkoj sib txawv? Hloov Apache default chaw nres nkoj mus rau qhov chaw nres nkoj kev cai

  1. Hloov Apache chaw nres nkoj ntawm Debian / Ubuntu. Kho kom raug /etc/apache2/ports.conf cov ntaub ntawv, $ sudo vi /etc/apache2/ports.conf. Nrhiav cov kab hauv qab no: Mloog 80.
  2. Hloov Apache chaw nres nkoj ntawm RHEL/CentOS. Nco ntsoov tias koj tau nruab Apache webserver ua ntej.

Ib yam li ntawd, nws tau nug, Apache puas tuaj yeem mloog ntawm ntau qhov chaw nres nkoj?

Yog tias koj hais txog ob qho kev qhia saum toj no hauv lub Apache configuration file ces tus Apache server yuav mloog pe ob chaw nres nkoj 80 thiab 8000. Ntau Mloog cov lus qhia yuav raug siv los qhia ntau qhov chaw nyob thiab chaw nres nkoj rau mloog rau. Hauv hom ntawv no, tus IP chaw nyob tau muab nrog rau a chaw nres nkoj.

Apache config file nyob qhov twg?

Ntawm cov tshuab feem ntau yog tias koj tau nruab Apache nrog tus thawj tswj pob, lossis nws tuaj ua ntej, Apache teeb tsa cov ntaub ntawv nyob hauv ib qho ntawm cov chaw no:

  • /etc/apache2/httpd. conf.
  • /etc/apache2/apache2. conf.
  • /etc/httpd/httpd. conf.
  • /etc/httpd/conf/httpd. conf.

Pom zoo: