作业要求
1.基于域名www.openlab.com可以访问网站内容为 welcome to openlab
2.给该公司创建三个子界面分别显示学生信息,教学资料和缴费网站,基于www.openlab.com/student 网站访问学生信息,www.openlab.com/data网站访问教学资料www.openlab.com/money网站访问缴费网站。
3.要求 (1)访问该网站http请求都通过https响应。(2)学生信息网站只有song和tian两人可以访问,其他用户不能访问。
作业步骤
1.工具,环境配置


2.创建主页面,子页面文件夹和内容

3.建立主站
root@localhost \~\]# vim /etc/nginx/nginx.conf 进入nginx配置文件

root@localhost \~\]# systemctl restart nginx 重启nginx
查看nginx进程

4.子站/data
在配置文件添加内容

5.子站/student
安装阿帕奇工具箱,加密/student

新建用户wsy,密码www147258

新建用户cxy,密码www12580

设置网页访问密码

配置文件添加内容

6.子站/money
生成密钥

制作证书

配置文件内容添加

去除私钥密码

重启nginx
root@localhost \~\]# systemctl restart nginx
7.检验



