当前位置:网站首页>Customize the web service configuration file
Customize the web service configuration file
2022-07-07 12:25:00 【Miracle_ ze】
customized web Service profile
1. System mounting and installation web service
Before mounting, you should write down the warehouse
Mount command :
mount /dev/sr0 /mnt
install web service 【 Use httpd】
dnf install httpd -y
-y: Default OK , In the installation, there is no need to enter y
2. establish web Directory files and added content of web pages
1. Create directory file
mkdir /www/130 -p
130: File name , whatever
-p: Create with parent directory
2. Add content
echo haha > /www/130/index.html
3. Edit profile content
Go to configuration file :
vim /etc/httpd/conf.d/host.conf
Add content 【 Add modules 】:
<directory /www>
allowoverride
require all granted
</directory>
<virtualhost 192.168.226.130:80>
documentroot /www/130
servername 192.168.226.131
</virtualhost>
4. restart httpd service 、 close linux Permissions and access firewall
1. restart httpd service
systemctl restart httpd
restart And start Different :restart Is to retrieve information ,start Is to start the service to obtain file information
2. close Linux jurisdiction
setenforce 0
effect : Delete /www/130 Of documents Linux jurisdiction
3. Turn off firewall
systemctl stop firewalld
effect : in order to Windows Able to access the configured website web Content
边栏推荐
- Review and arrangement of HCIA
- 108.网络安全渗透测试—[权限提升篇6]—[Windows内核溢出提权]
- Tutorial on principles and applications of database system (009) -- conceptual model and data model
- 《通信软件开发与应用》课程结业报告
- AirServer自动接收多画面投屏或者跨设备投屏
- 2022年在启牛开华泰的账户安全吗?
- <No. 9> 1805. Number of different integers in the string (simple)
- powershell cs-UTF-16LE编码上线
- 数据库系统原理与应用教程(008)—— 数据库相关概念练习题
- UP Meta—Web3.0世界创新型元宇宙金融协议
猜你喜欢
"Series after reading" my God! It's so simple to understand throttling and anti shake~
浅谈估值模型 (二): PE指标II——PE Band
RHSA first day operation
解决 Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
Attack and defense world - PWN learning notes
VSCode的学习使用
百度数字人度晓晓在线回应网友喊话 应战上海高考英语作文
Flet tutorial 17 basic introduction to card components (tutorial includes source code)
H3C HCl MPLS layer 2 dedicated line experiment
Superscalar processor design yaoyongbin Chapter 8 instruction emission excerpt
随机推荐
【滤波跟踪】捷联惯导纯惯导解算matlab实现
[play RT thread] RT thread Studio - key control motor forward and reverse rotation, buzzer
RHSA first day operation
VSCode的学习使用
小红书微服务框架及治理等云原生业务架构演进案例
<No. 8> 1816. 截断句子 (简单)
NPC Jincang was invited to participate in the "aerospace 706" I have an appointment with aerospace computer "national Partner Conference
Will the filing free server affect the ranking and weight of the website?
Superscalar processor design yaoyongbin Chapter 9 instruction execution excerpt
源代码防泄密中的技术区别再哪里
Zero shot, one shot and few shot
跨域问题解决方案
The function of adding @ before the path in C #
即刻报名|飞桨黑客马拉松第三期盛夏登场,等你挑战
Unity中SmoothStep介绍和应用: 溶解特效优化
SQL lab 11~20 summary (subsequent continuous update) contains the solution that Firefox can't catch local packages after 18 levels
数据库系统原理与应用教程(009)—— 概念模型与数据模型
AirServer自动接收多画面投屏或者跨设备投屏
Learning and using vscode
千人规模互联网公司研发效能成功之路