当前位置:网站首页>自定义配置文件
自定义配置文件
2022-07-21 05:17:00 【Xcgouge0972】
一,实现功能
1,基于ip地址不同的虚拟主机;
2,基于不同端口的虚拟主机;
3,基于不同主机名的虚拟主机;
二,具体实现
1,cd到虚拟机的子配置文件(/etc/httpd/conf.d/)中去,创建一个以.conf结尾的配置文件名,vim进入配置相关内容。
添加IP地址
2,在重启http服务,并查看结果,就可以在网页上输入ip地址并能看到redhat的测试页面。
3,写自己的页面
mkdir /www/130 -p
echo welcome to 130 > /www/130/index.html
mkdir /www/131 -p
echo welcome to 131 > /www/131/index.html
mkdir /www/8080
echo welcome to 8080 > /www/8080/index.html
mkdir /www/9090
echo welcome to 9090 > /www/9090/index.html
4,查看服务是否报错
5,页面展示
边栏推荐
- OSPF不规则区域,LSA以及序列号
- Dx11--用dx11绘制棱台,并用键盘和鼠标进行旋转缩放操作
- Force deduction record: dynamic programming 2 knapsack problem (1) 01 knapsack - 416 split equal sum subset, 1049 weight of the last stone II, 494 target sum, 474 one and zero
- OSPF irregular area, LSA and serial number
- Unity iTween的匀速运动
- Function and application of LAN telephone software system
- 代码修改模型的渐隐和渐现
- 一套十万级TPS的IM综合消息系统的架构实践与思考
- HoloLens下载、读取与存储Json文件路径问题(个人Hololens2进阶开发小总结一)
- [oops framework] supporting hot update plug-ins
猜你喜欢
HCIP OSPF综合实验
一套十万级TPS的IM综合消息系统的架构实践与思考
Dx11 --- texture and lighting (flame animation, texture rotation, paste different textures)
HCIP第一天作业
【无标题】
企业应该如何搭建客服机器人
Nat mode of VMware virtual machine network mode
print的运用以及两数的交换
HCIP 第五天
Dx11 -- draw the prism with Dx11, and rotate and zoom with the keyboard and mouse
随机推荐
OKCC呼叫中心呼出与呼入有什么不同
SIP account acquisition method of Telecom Optical cat network phone
jwt 的创建和验证 demo
OSPF的路由控制
图集分离RGB和A通道之后的图片合并RGBA通道后导出原图
呼叫中心客服系统如何搭建?
Directx-- draw hexagon (entity type)
Playable Director (TimeLine) 3D游戏的开场动画制作
子网划分作业
Open source cocos creator 3 X game framework oops framework
Complete the tutorial of setting up MySQL database master-slave replication cluster
OSPF的不规则区域
Force deduction record: dynamic programming 5 Subsequence Problems (2) editing distance - 392 judging subsequences, 115 different subsequences, 583 deleting operations of two strings, 72 editing dista
[oops framework] supporting hot update plug-ins
[oops framework] audio management
unity 自定义小工具之“导出图集图片”
手把手教你实现一套高效的IM长连接自适应心跳保活机制
Special topic on long connection Gateway Technology (VIII): evolution of microservice based API gateway in station B from 0 to 1
CocosCreator3.x 接入腾讯游戏联机对战引擎笔记
OKCC外呼中心为什么要把语音引入WEB中?