在redhat7搭建简易https网页

一.题目:
搭建一个基于https://www.zuoye.com:11111或https://wwww.zuoye.com:11111访问的网站,网站首页在/www/zuoye/,内容为homework.
二.解题步骤:
 1.配置yum仓库;
 可以点击此处,学习如何配置redhat7yum仓库.
 2.原来已经配置好yum仓库,安装httpd以及mod_ssl;
 在redhat7搭建简易https网页
 3.关闭防火墙以及selinux
 在redhat7搭建简易https网页
 4.添加ip地址
 在redhat7搭建简易https网页
 5.创建网页文件目录以及在网页首页写入内容
 在redhat7搭建简易https网页
 6.创建证书文件以及私钥文件
 在redhat7搭建简易https网页
 在redhat7搭建简易https网页
 7.更改网页配置文件
 在redhat7搭建简易https网页
 8.重启httpd
 在redhat7搭建简易https网页
 9.测试
  (1)使用命令行测试
  在redhat7搭建简易https网页
  (2)在实体机chrome浏览器测试,需要在操作系统缓存中增加DNS域名解析。首先编辑redat7中的/etc/hosts文件,因为我的实体机操作系统也是linux,所以我依然编辑 /etc/hosts文件
  在redhat7搭建简易https网页
  在redhat7搭建简易https网页
  (3)使用chrome测试
  在redhat7搭建简易https网页
  在redhat7搭建简易https网页
  在redhat7搭建简易https网页