基于redhat实现web网站搭建
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210708123752150.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81MzA1MzU2MQ==,size_16,color_FFFFFF,t_70#pic_center)
在虚拟机上安装需要用到的安装包
在安装httpd之前进行挂载以及编辑库
[root@HAHA html]# vim /etc/yum.repos.d/base.repo
[BaseOS]
name=BaseOS
baseurl=file:///mnt/BaseOS
gpgcheck=0
[AppStream]
name=AppStream
baseurl=file:///mnt/AppStream
gpgcheck=0
mount /dev/sr0 /mnt
#yum install httpd
出现complete!说明安装 成功
#yum install mod_ssl -y
安装mod_ssl包
编辑想要的库文件
[root@localhost conf.d]# vim hosts.conf
<Directory /100/student> —指定用户访问
AuthType Basic
AuthName “please login…”
AuthUserFile /etc/httpd/users
Require user song tian