RHCE第五天作业--搭建https静态网站

搭建一个基于https://www.zuoye.com访问的web网站,网站首页在/www/https/,内容为exercise。

准备服务
安装服务包
在这里插入图片描述
在这里插入图片描述
创建文件,以及写入信息
在这里插入图片描述
在这里插入图片描述
生成密钥证书
在这里插入图片描述

修改配置文件

[root@localhost ~]# vim /etc/httpd/conf.d/https.conf

在这里插入图片描述

关闭防火墙和selinux
在这里插入图片描述
重启http服务

[root@localhost certs]# systemctl restart httpd

虚拟机添加域名

[root@localhost certs]# vim /etc/hosts
192.168.2.11 www.zuoye.com

windows主机添加域名

C:\Windows\System32\drivers\etc\hosts

在这里插入图片描述
结果显示
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_55822200/article/details/127836039