当前位置:网站首页>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
边栏推荐
- MATLAB實現Huffman編碼譯碼含GUI界面
- When OSPF specifies that the connection type is P2P, it enables devices on both ends that are not in the same subnet to Ping each other
- Tutorial on the principle and application of database system (008) -- exercises on database related concepts
- 108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]
- MATLAB实现Huffman编码译码含GUI界面
- Xiaohongshu microservice framework and governance and other cloud native business architecture evolution cases
- Niuke website
- 30. Feed shot named entity recognition with self describing networks reading notes
- Rationaldmis2022 advanced programming macro program
- 平安证券手机行开户安全吗?
猜你喜欢
SQL head injection -- injection principle and essence
Static comprehensive experiment
问题:先后键入字符串和字符,结果发生冲突
@Bean与@Component用在同一个类上,会怎么样?
Tutorial on principles and applications of database system (010) -- exercises of conceptual model and data model
数据库系统原理与应用教程(009)—— 概念模型与数据模型
About sqli lab less-15 using or instead of and parsing
EPP+DIS学习之路(2)——Blink!闪烁!
Processing strategy of message queue message loss and repeated message sending
AirServer自动接收多画面投屏或者跨设备投屏
随机推荐
sql-lab (54-65)
《看完就懂系列》天哪!搞懂节流与防抖竟简单如斯~
About web content security policy directive some test cases specified through meta elements
SQL injection -- Audit of PHP source code (take SQL lab 1~15 as an example) (super detailed)
数据库系统原理与应用教程(011)—— 关系数据库
防红域名生成的3种方法介绍
Problem: the string and characters are typed successively, and the results conflict
College entrance examination composition, high-frequency mention of science and Technology
Rationaldmis2022 advanced programming macro program
<No. 9> 1805. 字符串中不同整数的数目 (简单)
ES底层原理之倒排索引
问题:先后键入字符串和字符,结果发生冲突
Hi3516全系统类型烧录教程
Improve application security through nonce field of play integrity API
Unity中SmoothStep介绍和应用: 溶解特效优化
112. Network security penetration test - [privilege promotion article 10] - [Windows 2003 lpk.ddl hijacking rights lifting & MSF local rights lifting]
Learning and using vscode
Solutions to cross domain problems
关于 Web Content-Security-Policy Directive 通过 meta 元素指定的一些测试用例
<No. 8> 1816. 截断句子 (简单)