mkdir /www/port/{9090,9091} -p
ls -l /www/port/
查看创建的目录
![](https://img-blog.csdnimg.cn/img_convert/4472003192d3a2eda52a1dce71c33e29.png)
对端口进行重定向
echo "This page is for port 9090" > /www/port/9090/index.html
echo "This page is for port 9091" > /www/port/9091/index.html
编辑etc/httpd/conf.d/myhouse.conf
vim /etc/httpd/conf.d/myhouse.conf
![](https://img-blog.csdnimg.cn/img_convert/6ea0a33747d47b62b874883df5112a19.png)
将以上代码输入
输入完,保存退出:wq!
重启服务
systemctl restart httpd
打开浏览器,输入ip+端口
如下图所示
![](https://img-blog.csdnimg.cn/img_convert/c0807c1cd5e3a4a4f497829d242a734e.png)
![](https://img-blog.csdnimg.cn/img_convert/9331682f94b1cc88ee41888901ecd0a5.png)
hash算法: