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

国内互联网建站公司排名紫色网站模板

国内互联网建站公司排名,紫色网站模板,深圳建设集团怎么样,图片素材网站哪个最多实验要求 综合练习#xff1a;请给openlab搭建web网站 ​ 网站需求#xff1a; ​ 1.基于域名[www.openlab.com](http://www.openlab.com)可以访问网站内容为 welcome to openlab!!! ​ 2.给该公司创建三个子界面分别显示学生信息#xff0c;教学资料和缴费网站#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缴费页面。 实验过程 [rootnode ~]# yum install nginx -y [rootnode ~]# systemctl start nginx [rootnode ~]# systemctl enable nginx [rootnode ~]# cd /etc/nginx/ [rootnode 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 [rootnode nginx]# cd /usr/share/nginx/html [rootnode html]# vim index.html !DOCTYPE html html langen headmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0titleWelcome to OpenLab!/title /head bodyh1Welcome to OpenLab!!!/h1 /body /html[rootnode html]# vim data.html !DOCTYPE html html langen headmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0titleTeaching Materials/title /head bodyh1Teaching Materials/h1pResources and notes for the course./p /body /html[rootnode html]# vim money.html !DOCTYPE html html langen headmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0titlePayment Portal/title /head bodyh1Payment Portal/h1pPlease make your payment here./p /body /html[rootnode html]# yum install httpd-tools -y[rootnode html]# htpasswd -c /etc/nginx/.htpasswd song New password: Re-type new password: Adding password for user song [rootnode html]# htpasswd /etc/nginx/.htpasswd tian New password: Re-type new password: Adding password for user tian[rootnode ~]# 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 Authlocation /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;}# 缴费页面强制使用 HTTPSlocation /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 Authlocation /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;}} }[rootnode ~]# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful[rootnode ~]# systemctl restart nginx[rootnode ~]# vim /usr/share/nginx/html/index.html[rootnode ~]# vim /etc/hosts[rootnode ~]# ping www.openlab.com PING www.openlab.com (192.168.133.20) 56(84) 字节的数据。 64 字节来自 www.openlab.com (192.168.133.20): icmp_seq1 ttl64 时间0.028 毫秒 64 字节来自 www.openlab.com (192.168.133.20): icmp_seq2 ttl64 时间0.031 毫秒 64 字节来自 www.openlab.com (192.168.133.20): icmp_seq3 ttl64 时间0.028 毫秒 主界面  student
http://www.hkea.cn/news/14537419/

相关文章:

  • 吉林网络推广公司电商网站优化方案
  • 教育一对一直播网站建设备案多个网站
  • 北京天仪建设工程质量检测所网站6孵化器网站平台建设
  • 广西百色建设局网站免费的网站域名和空间
  • 嘉祥县建设局官方网站广东网站seo
  • 湛江做网站开发哪些网站可以做微课
  • 做的网站怎么申请软件著作权网上接单干活的平台
  • 网站搭建十大品牌公司ae免费模板下载网站
  • wordpress存储镜像做网站和优化共多少钱
  • 廊坊做网站1766534168太原做网络推广
  • 建立网站需要投入的成本网站管理员密码忘记
  • 网站做推广的企业网站框架文案
  • 上海网站建设公司网广东网站建设网站
  • 湖南网站建设oqiandu中美关系最新消息2022年
  • 中太建设集团股份有限公司官方网站网站建设项目规划审批
  • 站长之家 seo查询阿里云 iis 多个网站
  • 如何提高网站用户体验做网站游戏都需要什么
  • 中国商标官方网站wordpress显示英文
  • 正常开发一个网站需要多少钱杭州战争网站建设
  • php做购物网站的弊端百度网址大全下载安装
  • 嘉兴网站建设多少钱做公众号一般在哪个网站照片
  • 济南网站建设行知科技建一个漫画网站
  • 做包装盒效果图网站上海外贸网站制作
  • 服务器怎么装网站吗网页制作实训总结800字
  • 凡科建站价格视频作品投票网站如何做
  • 北京网络公司建站搜房网站要怎么 做
  • 网站打开空白页php做网站的分站
  • 网站左侧悬浮双辽建设局网站
  • wordpress远程发布apiseo网络推广经理
  • 如何网站建设的方案网站建设管理工作的意见