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

重庆点优定制网站建设中山seo关键词

重庆点优定制网站建设,中山seo关键词,网页界面设计风格,无锡大型网站建设公司网站需求 1.基于域名www.openlab.com可以访问网站内容为 welcome to openlab!!! 2.给该公司创建三个网站目录分别显示学生信息#xff0c;教学资料和缴费网站#xff0c;基于www.openlab.com/student 网站访问学生信息#xff0c;www.openlab.com/data网站访问教学资料 www…网站需求 1.基于域名www.openlab.com可以访问网站内容为 welcome to openlab!!! 2.给该公司创建三个网站目录分别显示学生信息教学资料和缴费网站基于www.openlab.com/student 网站访问学生信息www.openlab.com/data网站访问教学资料 www.openlab.com/money网站访问缴费网站。 3.要求 1学生信息网站只有song和tian两人可以访问其他网站所有用户用能访问。 2访问缴费网站实现数据加密基于https访问。 准备 1.需要两台Linux虚拟机一台为服务端server另一台为客户端client server IPV4192.168.110.136/24                client  IPV4192.168.110.134/24 2.服务端需要关闭防火墙和Linux的安全服务seLinux [rootserver ~]# systemctl stop firewalld [rootserver ~]# setenforce 0 [rootserver ~]# getenforce  Permissive 3.安装httpdmol_ssl [rootserver ~]# yum install -y httpd mod_ssl 配置 1.客户端通过IP地址可以正常访问服务端内容 [rootserver ~]# mkdir -v /openlab/                       #创建目录 已创建目录 /openlab/  [rootserver ~]# echo welcome to openlab /openlab/index.html  #写入内容  [rootserver ~]# vim /etc/httpd/conf.d/openlab.conf            #打开httpd的额外参数配置文件  Directory /openlab/         Options Indexes FollowSymLinks                                                AllowOverride None           Require all granted                  /Directory VirtualHost 192.168.110.136:80     ServerAdmin adminoutlook.com     DocumentRoot /openlab/     ServerName www.openlab.com /VirtualHost [rootserver ~]# httpd -t               #语法检测 Syntax OK [rootserver ~]# systemctl restart httpd         #重启服务 客户端访问 [rootclient ~]# curl 192.168.110.136 welcome to openlab 2.搭建学生信息,教学资料,缴费网站页面 [rootserver ~]# mkdir /openlab/{student,data,money} -v mkdir: 已创建目录 /openlab/student mkdir: 已创建目录 /openlab/data mkdir: 已创建目录 /openlab/money [rootserver ~]# echo 学生信息 /openlab/student/index.html      #写入内容 [rootserver ~]# echo 教育网站 /openlab/data/index.html           #写入内容 [rootserver ~]# echo 缴费网站 /openlab/money/index.html       #写入内容 首先配置student页面只有song和tian用户访问 [rootserver ~]# htpasswd -c /etc/httpd/conf.d/httpd song    #创建sond的身份验证文件 New password:  Re-type new password:  Adding password for user song [rootserver ~]# htpasswd /etc/httpd/conf.d/httpd tian      #添加tain的身份验证文件 New password:  Re-type new password:  Adding password for user tian [rootserver ~]# cat /etc/httpd/conf.d/httpd song:$apr1$XWPO6i0/$hNsM5W/Gx3ukFsPokAEEH. tian:$apr1$SSblX1SO$YGyWDIuzZmCuLfhBnqn6m1 [rootserver ~]# vim /etc/httpd/conf.d/openlab.conf    #在额外参数配置文件添加内容 VirtualHost 192.168.110.136:80     ServerAdmin adminoutlook.com     DocumentRoot /openlab/student     ServerName www.openlab.com /VirtualHost Directory /openlab/student         Options Indexes FollowSymLinks         AllowOverride None         AuthType Basic         AuthName Restricted Files         AuthUserFile /etc/httpd/conf.d/httpd     #身份验证文件的路径         Require user song tian                         #允许访问的用户 /Directory [rootserver ~]# httpd -t                             #语法检测 Syntax OK [rootserver ~]# systemctl restart httpd   #重启服务 客户端访问 [rootclient ~]# curl 192.168.110.136/student/ -u song Enter host password for user song: 学生信息 [rootclient ~]# curl 192.168.110.136/student/ -u tian Enter host password for user tian: 学生信息 其他用户访问 配置教学资料网站所有用户都可访问 [rootserver ~]# vim /etc/httpd/conf.d/openlab.conf   #打开配置文件添加内容 Directory /openlab/data/ Options Indexes FollowSymLinks   AllowOverride None Require all granted /Directory VirtualHost 192.168.110.136:80     ServerAdmin adminoutlook.com     DocumentRoot /openlab/data/     ServerName www.openlab.com /VirtualHost [rootserver ~]# httpd -t Syntax OK [rootserver ~]# systemctl restart httpd   客户端访问 [rootclient ~]# curl 192.168.110.136/data/ 教育网站 配置缴费网站实现数据加密基于https访问 [rootserver ~]# cd /etc/pki/tls/certs/                         #存放着一些证书文件 [rootserver certs]# openssl genrsa 2048 openlab.key    #生成私钥文件 [rootserver certs]# openssl req -utf8 -new -key openlab.key -x509 -days 100 -out openlab.crt     #生成证书 You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter ., the field will be left blank. ----- Country Name (2 letter code) [XX]:SN         #国家 State or Province Name (full name) []:CN     #省份 Locality Name (eg, city) [Default City]:XIAN        #城市      Organization Name (eg, company) [Default Company Ltd]:OPENLAB    #企业 Organizational Unit Name (eg, section) []:RHCE        #部门 Common Name (eg, your name or your servers hostname) []:www.openlab.com 域名 Email Address []:admioutlook.com            #邮件 [rootserver ~]# vim /etc/httpd/conf.d/openlab.conf VirtualHost 192.168.110.136:443     DocumentRoot /openlab/money/     ServerName www.openlab.com     SSLEngine on     SSLCertificateFile /etc/pki/tls/certs/openlab.crt     SSLCertificateKeyFile /etc/pki/tls/certs/openlab.key /VirtualHost Directory /openlab/money/     Options Indexes FollowSymLinks     AllowOverride None     Require all granted /Directory [rootserver ~]# httpd -t Syntax OK [rootserver ~]# systemctl restart httpd 客户端访问 [rootclient ~]# curl https://192.168.110.136 -k    #-k为忽略证书访问 缴费网站 [rootclient ~]# curl 192.168.110.136/money/ -k  缴费网站 /etc/httpd/conf.d/openlab.conf配置文件最终内容 3.客户端通过域名可以正常访问服务端内容 在没有DNS域名解析服务器的情况下可以使用本机hosts文件hosts文件其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联数据库 在Linux下hosts文件地址为/etc/host [rootclient ~]# vim /etc/hosts                        #写入内容 192.168.110.136        www.openlab.com [rootclient ~]# curl www.openlab.com welcome to openlab [rootclient ~]# curl www.openlab.com/student/ -u song Enter host password for user song: 学生信息 [rootclient ~]# curl www.openlab.com/student/ -u tian Enter host password for user tian: 学生信息 [rootclient ~]# curl www.openlab.com/data/ 教育网站 [rootclient ~]# curl https://www.openlab.com -k 缴费网站 [rootclient ~]# curl www.openlab.com/money/ -k 缴费网站 在Windows客户端下hosts文件路径为C:\Windows\System32\drivers\etc\hosts   添加内容浏览器访问即可
http://www.yutouwan.com/news/80663/

相关文章:

  • 贵州建设厅考试网站安全员怎么建网站教程图解
  • html网站建设方案网站建设是专业
  • 免费个人网站平台开源 购物网站
  • 个人网站展示vps wordpress
  • 网站建设需要哪些步骤 谢谢网站开发策略都有啥
  • 卖磁铁的网站怎么做的网址站
  • 女性手表网站企业网盘软件
  • 什么叫营销型网站建设长沙竹叶网络科技有限公司
  • 汽车网站建设规划书网页制作基础教程背景图片
  • 惠州高端模板建站网站建设法律可行性
  • 做化妆品等的网站优设网网站设计评价
  • 苏州网站建立公司wordpress自适应主体
  • 学校网站 建设措施哪个网站可以做视频软件
  • 有哪些做产品产业链分析的网站深圳龙岗现在算什么风险地区
  • 加强网站建设的wordpress 备份到云盘
  • 建设网站花都企业网站建设博客论坛
  • 什么是做学院网站wordpress 开关 边栏 选择 模板
  • 做外贸网站应该关注哪些地方网站建设与管理logo
  • 代理下单网站开发有哪些网站可以做兼职
  • win7 iis建立网站海阳做网站
  • 织梦网站开发视频教程山西太原小店区最新消息
  • 获得网站管理员密码网站开发调查问卷题
  • 用动物做网站名称采集1024图片到wordpress
  • 公司平台网站建设qq邮箱登录入口网页版
  • 辽源市建设局网站沈阳建设网站费用
  • jeecms做企业网站网站及建设中页面
  • 外贸网站免费建站wordpress做的网站效果6
  • 网站建设与服务技能实训心得体会展馆公司
  • asp.net网站建设项目实战 董义革网站开发 项目规划 怎么写
  • 一个简易网站怎么做制作网页的代码实例