httpd基本配置(未完成)

蒜香大龙虾 2024-08-08 01:37:50
Categories: Tags:

httpd配置

安装

1
yum install httpd -y

配置虚拟主机

1
2
3
4
5
6
7
8
9
<VirtualHost *:8080>
ServerName www.skills.com
DocumentRoot /
DirectoryIndex index.php
</VirtualHost>
<Directory "/usr/www/">
Require all granted #全部允许访问,二选一
Require all denied #全部拒绝访问,二选一
</Directory>

启动&防火墙

1
2
systemctl enable
firewalld --add-port