当前位置:网站首页>Apache build web host

Apache build web host

2022-07-05 02:40:00 M wild 9

Apache structure web host

Domain name based virtual host construction process

First step : Provide domain name resolution for virtual hosts

Apache structure web host _vim

The second step : Prepare web documents for virtual hosts

Apache structure web host _ Virtual host _02

The third step : Add virtual host configuration

vim /usr/local/httpd/conf/extra/httpd-vhosts.conf

Apache structure web host _ The configuration file _03

Step four : Set access control

Paste into the end of the line of the virtual host configuration file and modify

Apache structure web host _ Virtual host _04

Step five : Load a separate configuration file

1) Cancel 483 Comment on line

Apache structure web host _ Virtual host _05

Apache structure web host _vim_06

Step six : Access the virtual machine in the client Web host

Apache structure web host _vim_07

Apache structure web host _ Virtual host _08

be based on IP Virtual host construction process of address

Set up the virtual network card ip Network segment

Apache structure web host _vim_09

Modify the virtual host configuration file to 192.168.153.40

vim /usr/local/httpd/conf/extra/httpd-vhosts.conf

Apache structure web host _vim_10

Modify master profile , increase IP And port

vim /usr/local/httpd/conf/httpd.conf

Apache structure web host _ Virtual host _11

restart httpd service , Then access the test on the client

Apache structure web host _ The configuration file _12

Access the test on the client

Apache structure web host _vim_13

Port based virtual host construction process

First step : Modify the virtual host configuration file

Apache structure web host _ The configuration file _14

The second step : Modify the listening of the main configuration file ip And port

Apache structure web host _ The configuration file _15

The third step : Restart the service , Access the virtual server in the client browser Web host

Apache structure web host _vim_16

In the client, the browser passes ip And port access virtual Web host

Apache structure web host _ Virtual host _17

原网站

版权声明
本文为[M wild 9]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140908089185.html