网站需求:
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两人可以访问,其他用户不能访问。
第一步:准备工作
[root@server ~]# setenforce 0
[root@server ~]# systemctl stop firewalld
[root@server ~]# systemctl disable firewalld
[root@server ~]# yum install nginx -y
第二步:新建index.html
第三步:手动配置IP地址与域名的映射关系
[root@server ~]# vim /etc/hosts
192.168.108.136 www.openlab.com
[root@server ~]# vim /etc/nginx/nginx.conf 
[root@localhost ~]# yum install httpd-tools -y

-
第四步:重启服务,测试
-
[root@server ~]# systemctl restart nginx


被折叠的 条评论
为什么被折叠?



