当前位置:网站首页>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
边栏推荐
- Explore cloud database of cloud services together
- Idea 2021 Chinese garbled code
- Will the filing free server affect the ranking and weight of the website?
- SQL Lab (32~35) contains the principle understanding and precautions of wide byte injection (continuously updated later)
- 《看完就懂系列》天哪!搞懂节流与防抖竟简单如斯~
- Tutorial on principles and applications of database system (007) -- related concepts of database
- [filter tracking] strapdown inertial navigation pure inertial navigation solution matlab implementation
- Completion report of communication software development and Application
- Epp+dis learning road (2) -- blink! twinkle!
- EPP+DIS学习之路(1)——Hello world!
猜你喜欢
全球首堆“玲龙一号”反应堆厂房钢制安全壳上部筒体吊装成功
【深度学习】图像多标签分类任务,百度PaddleClas
Zero shot, one shot and few shot
MATLAB實現Huffman編碼譯碼含GUI界面
Introduction and application of smoothstep in unity: optimization of dissolution effect
Tutorial on the principle and application of database system (011) -- relational database
2022 8th "certification Cup" China University risk management and control ability challenge
powershell cs-UTF-16LE编码上线
SQL lab 26~31 summary (subsequent continuous update) (including parameter pollution explanation)
File upload vulnerability - upload labs (1~2)
随机推荐
让数字管理好库存
Basic introduction to the 16 tabs tab control in the fleet tutorial (the tutorial includes source code)
VSCode的学习使用
<No. 9> 1805. 字符串中不同整数的数目 (简单)
About sqli lab less-15 using or instead of and parsing
Fleet tutorial 15 introduction to GridView Basics (tutorial includes source code)
111.网络安全渗透测试—[权限提升篇9]—[Windows 2008 R2内核溢出提权]
Completion report of communication software development and Application
The road to success in R & D efficiency of 1000 person Internet companies
DOM parsing XML error: content is not allowed in Prolog
Summed up 200 Classic machine learning interview questions (with reference answers)
Rationaldmis2022 array workpiece measurement
Attack and defense world - PWN learning notes
关于 Web Content-Security-Policy Directive 通过 meta 元素指定的一些测试用例
Tutorial on principles and applications of database system (007) -- related concepts of database
The left-hand side of an assignment expression may not be an optional property access.ts(2779)
Inverted index of ES underlying principle
Typescript interface inheritance
(to be deleted later) yyds, paid academic resources, please keep a low profile!
What are the technical differences in source code anti disclosure