1. 程式人生 > >Apache伺服器——基於埠的虛擬主機

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