Apache服务器——基于端口的虚拟主机

1 安装

yum install -y httpd

2 配置网页

echo "8001">/home/www/html1/index.html

echo "8002">/home/www/html2/index.html

echo "8003">/home/www/html3/index.html

web配置

3 主配置文件

配置端口

虚拟主机配置

4  启动与测试

测试1

8001

测试2

8002

测试3

8003

猜你喜欢

转载自blog.csdn.net/VictoryKingLIU/article/details/82695769