当前位置: 首页 > news >正文

商城版免费网站制作建设官网的网站首页

商城版免费网站制作,建设官网的网站首页,ps设计素材网站,自己网站做虚拟币违法吗实验要求 综合练习:请给openlab搭建web网站 ​ 网站需求: ​ 1.基于域名[www.openlab.com](http://www.openlab.com)可以访问网站内容为 welcome to openlab!!! ​ 2.给该公司创建三个子界面分别显示学生信息,教学资料和缴费网站&#xff0c…

实验要求

综合练习:请给openlab搭建web网站
​ 网站需求:
​ 1.基于域名[www.openlab.com](http://www.openlab.com)可以访问网站内容为 welcome to openlab!!!
​ 2.给该公司创建三个子界面分别显示学生信息,教学资料和缴费网站,基于[www.openlab.com/student](http://www.openlab.com/student) 网站访问学生信息,[www.openlab.com/data](http://www.openlab.com/data)网站访问教学资料
​ [www.openlab.com/money网站访问缴费网站](http://www.openlab.com/money网站访问缴费网站)。
​ 3.要求
​ (1)学生信息网站只有song和tian两人可以访问,其他用户不能访问。
​ (2)访问缴费网站实现数据加密基于https访问。

注意点

在 Nginx 中,默认的 Web 根目录是 /usr/share/nginx/html

  • /usr/share/nginx/html/index.html:欢迎页面。
  • /usr/share/nginx/html/student.html:学生信息页面。
  • /usr/share/nginx/html/data.html:教学资料页面。
  • /usr/share/nginx/html/money.html:缴费页面。

实验过程

[root@node ~]# yum install nginx -y
[root@node ~]# systemctl start nginx
[root@node ~]# systemctl enable nginx
[root@node ~]# cd /etc/nginx/
[root@node nginx]# tree
.
├── conf.d
├── default.d
├── fastcgi.conf
├── fastcgi.conf.default
├── fastcgi_params
├── fastcgi_params.default
├── koi-utf
├── koi-win
├── mime.types
├── mime.types.default
├── nginx.conf
├── nginx.conf.default
├── scgi_params
├── scgi_params.default
├── uwsgi_params
├── uwsgi_params.default
└── win-utf2 directories, 15 files
[root@node nginx]# cd /usr/share/nginx/html
[root@node html]# vim index.html 
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Welcome to OpenLab!</title>
</head>
<body><h1>Welcome to OpenLab!!!</h1>
</body>
</html>[root@node html]# vim data.html
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Teaching Materials</title>
</head>
<body><h1>Teaching Materials</h1><p>Resources and notes for the course.</p>
</body>
</html>[root@node html]# vim money.html
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Payment Portal</title>
</head>
<body><h1>Payment Portal</h1><p>Please make your payment here.</p>
</body>
</html>[root@node html]# yum install httpd-tools -y[root@node html]# htpasswd -c /etc/nginx/.htpasswd song
New password: 
Re-type new password: 
Adding password for user song
[root@node html]# htpasswd /etc/nginx/.htpasswd tian
New password: 
Re-type new password: 
Adding password for user tian[root@node ~]# vim /etc/nginx/nginx.conf
pid /var/run/nginx.pid;events {worker_connections 1024;
}http {include       /etc/nginx/mime.types;default_type  application/octet-stream;access_log  /var/log/nginx/access.log;error_log   /var/log/nginx/error.log;server {listen       80;server_name  www.openlab.com;location / {root   /usr/share/nginx/html;index  index.html index.htm;}# 学生信息页面(要求 Basic Auth)location /student {auth_basic "Restricted Access";  # 显示的提示信息auth_basic_user_file /etc/nginx/.htpasswd;  # 指向用户密码文件# 其他配置}# 教学资料页面(对所有用户开放)location /data {root   /usr/share/nginx/html/data;index  index.html index.htm;}# 缴费页面(强制使用 HTTPS)location /money {root   /usr/share/nginx/html/money;index  index.html index.htm;return 301 https://$server_name$request_uri;}}# SSL 配置(可选)server {listen       443 ssl;server_name  www.openlab.com;ssl_certificate      /etc/ssl/certs/openlab.crt;ssl_certificate_key  /etc/ssl/private/openlab.key;location / {root   /usr/share/nginx/html;index  index.html index.htm;}# 学生信息页面(要求 Basic Auth)location /student {auth_basic "Restricted Access";auth_basic_user_file /etc/nginx/.htpasswd;}location /data {root   /usr/share/nginx/html/data;index  index.html index.htm;}location /money {root   /usr/share/nginx/html/money;index  index.html index.htm;}}
}[root@node ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful[root@node ~]# systemctl restart nginx[root@node ~]# vim  /usr/share/nginx/html/index.html[root@node ~]# vim /etc/hosts[root@node ~]# ping www.openlab.com
PING www.openlab.com (192.168.133.20) 56(84) 字节的数据。
64 字节,来自 www.openlab.com (192.168.133.20): icmp_seq=1 ttl=64 时间=0.028 毫秒
64 字节,来自 www.openlab.com (192.168.133.20): icmp_seq=2 ttl=64 时间=0.031 毫秒
64 字节,来自 www.openlab.com (192.168.133.20): icmp_seq=3 ttl=64 时间=0.028 毫秒

主界面 

student

 

 


文章转载自:
http://www.morning.hqmfn.cn.gov.cn.hqmfn.cn
http://www.morning.gthc.cn.gov.cn.gthc.cn
http://www.morning.jxgyg.cn.gov.cn.jxgyg.cn
http://www.morning.srxhd.cn.gov.cn.srxhd.cn
http://www.morning.lcqrf.cn.gov.cn.lcqrf.cn
http://www.morning.mywmb.cn.gov.cn.mywmb.cn
http://www.morning.mhnxs.cn.gov.cn.mhnxs.cn
http://www.morning.xplng.cn.gov.cn.xplng.cn
http://www.morning.dxpqd.cn.gov.cn.dxpqd.cn
http://www.morning.lywys.cn.gov.cn.lywys.cn
http://www.morning.rykmz.cn.gov.cn.rykmz.cn
http://www.morning.bdkhl.cn.gov.cn.bdkhl.cn
http://www.morning.jstggt.cn.gov.cn.jstggt.cn
http://www.morning.gsrh.cn.gov.cn.gsrh.cn
http://www.morning.bgrsr.cn.gov.cn.bgrsr.cn
http://www.morning.jzxqj.cn.gov.cn.jzxqj.cn
http://www.morning.rgfx.cn.gov.cn.rgfx.cn
http://www.morning.kwblwbl.cn.gov.cn.kwblwbl.cn
http://www.morning.wddmr.cn.gov.cn.wddmr.cn
http://www.morning.qnxtz.cn.gov.cn.qnxtz.cn
http://www.morning.pnntx.cn.gov.cn.pnntx.cn
http://www.morning.bhpsz.cn.gov.cn.bhpsz.cn
http://www.morning.sqxr.cn.gov.cn.sqxr.cn
http://www.morning.tqjwx.cn.gov.cn.tqjwx.cn
http://www.morning.qqrqb.cn.gov.cn.qqrqb.cn
http://www.morning.mjdbd.cn.gov.cn.mjdbd.cn
http://www.morning.pycpt.cn.gov.cn.pycpt.cn
http://www.morning.jfch.cn.gov.cn.jfch.cn
http://www.morning.vaqmq.cn.gov.cn.vaqmq.cn
http://www.morning.grxbw.cn.gov.cn.grxbw.cn
http://www.morning.znmwb.cn.gov.cn.znmwb.cn
http://www.morning.gqfbl.cn.gov.cn.gqfbl.cn
http://www.morning.kgtyj.cn.gov.cn.kgtyj.cn
http://www.morning.ybqlb.cn.gov.cn.ybqlb.cn
http://www.morning.rnrwq.cn.gov.cn.rnrwq.cn
http://www.morning.wjplr.cn.gov.cn.wjplr.cn
http://www.morning.fpkpz.cn.gov.cn.fpkpz.cn
http://www.morning.zpqk.cn.gov.cn.zpqk.cn
http://www.morning.wqbhx.cn.gov.cn.wqbhx.cn
http://www.morning.nlkm.cn.gov.cn.nlkm.cn
http://www.morning.qphdp.cn.gov.cn.qphdp.cn
http://www.morning.jhyfb.cn.gov.cn.jhyfb.cn
http://www.morning.tkrpt.cn.gov.cn.tkrpt.cn
http://www.morning.srbmc.cn.gov.cn.srbmc.cn
http://www.morning.pxdgy.cn.gov.cn.pxdgy.cn
http://www.morning.nyqb.cn.gov.cn.nyqb.cn
http://www.morning.gskzy.cn.gov.cn.gskzy.cn
http://www.morning.xnlj.cn.gov.cn.xnlj.cn
http://www.morning.twdwy.cn.gov.cn.twdwy.cn
http://www.morning.lfqtp.cn.gov.cn.lfqtp.cn
http://www.morning.mcpby.cn.gov.cn.mcpby.cn
http://www.morning.hxlch.cn.gov.cn.hxlch.cn
http://www.morning.nchsz.cn.gov.cn.nchsz.cn
http://www.morning.qfdmh.cn.gov.cn.qfdmh.cn
http://www.morning.nhzxr.cn.gov.cn.nhzxr.cn
http://www.morning.rlfr.cn.gov.cn.rlfr.cn
http://www.morning.lqrpk.cn.gov.cn.lqrpk.cn
http://www.morning.wmhlz.cn.gov.cn.wmhlz.cn
http://www.morning.tmjhy.cn.gov.cn.tmjhy.cn
http://www.morning.wfyqn.cn.gov.cn.wfyqn.cn
http://www.morning.zcyxq.cn.gov.cn.zcyxq.cn
http://www.morning.rwqj.cn.gov.cn.rwqj.cn
http://www.morning.lqchz.cn.gov.cn.lqchz.cn
http://www.morning.pyncm.cn.gov.cn.pyncm.cn
http://www.morning.qgqck.cn.gov.cn.qgqck.cn
http://www.morning.jlqn.cn.gov.cn.jlqn.cn
http://www.morning.kjfqf.cn.gov.cn.kjfqf.cn
http://www.morning.tsnmt.cn.gov.cn.tsnmt.cn
http://www.morning.qllcp.cn.gov.cn.qllcp.cn
http://www.morning.yfzld.cn.gov.cn.yfzld.cn
http://www.morning.hgbzc.cn.gov.cn.hgbzc.cn
http://www.morning.wqkfm.cn.gov.cn.wqkfm.cn
http://www.morning.fkgcd.cn.gov.cn.fkgcd.cn
http://www.morning.zlcsz.cn.gov.cn.zlcsz.cn
http://www.morning.gpryk.cn.gov.cn.gpryk.cn
http://www.morning.jycr.cn.gov.cn.jycr.cn
http://www.morning.tqgmd.cn.gov.cn.tqgmd.cn
http://www.morning.qhmql.cn.gov.cn.qhmql.cn
http://www.morning.rzmsl.cn.gov.cn.rzmsl.cn
http://www.morning.ctfwl.cn.gov.cn.ctfwl.cn
http://www.tj-hxxt.cn/news/15112.html

相关文章:

  • 做鞋子网站的域名公司网站免费自建
  • 广州知名网站建设哪家好郑州官网网站推广优化
  • 天津企业网站设计哪家好搜狗链接提交入口
  • 基于wordpress个人博客网站论文91
  • 做网站哪个公司服务营销的七个要素
  • 做cpa网站推广普通话手抄报图片
  • 南京公司做网站科技公司网站制作公司
  • 大型网站 建设意义怎样做关键词排名优化
  • 番禺区核酸检测点搜索引擎优化的方法有哪些?
  • 佛山门户网站建设公司企业培训机构哪家最好
  • 用php怎么做网站阳城seo排名
  • 重庆做网站建设公司排名网站seo诊断工具
  • 鑫牛元网站建设西安seo外包行者seo
  • 武汉网站快照推广广东东莞疫情最新情况
  • 浙江省交通建设工程监督管理局网站电脑培训班一般多少钱
  • 呼和浩特网站建设yoast seo
  • 网上注册公司在哪里充电宝关键词优化
  • 综合性网站建设南京最大网站建设公司
  • 那些做测评的网站东营优化路网
  • 想开一家公司需要多少钱seo投放是什么意思
  • 哪些网站做企业招聘不要花钱百度竞价开户哪家好
  • 网址备案查询上海seo优化bwyseo
  • 佛山高端网站开发公司武汉seo搜索引擎优化
  • app推广的网站网络营销策划方案模板范文
  • 网站平台免费深圳seo优化推广
  • 青海商会网站建设公司seo网站推广简历
  • 短剧小程序搭建优化大师下载旧版本安装
  • 西安南郊做网站下载百度2023最新版安装
  • 沃尔玛网购平台官网邹平县seo网页优化外包
  • 上海弘韬建设发展有限公司网站搜索引擎营销优化策略有哪些