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

镇海区住房建设网站怎么查百度官方网

镇海区住房建设网站怎么查,百度官方网,wordpress getoption,龙华网站建设公司背景: 我在本地Windows VMware 15的环境中部署了CentOS7.5,下载jumpserver-offline-installer-v2.28.1-amd64-138.tar.gz并安装部署。 需求: 1、能使用http:ip访问堡垒机。达成; 2、能使用http:域名访问堡垒机。达成&#xff…

背景:

我在本地Windows VMware 15的环境中部署了CentOS7.5,下载jumpserver-offline-installer-v2.28.1-amd64-138.tar.gz并安装部署。

需求:

1、能使用http:ip访问堡垒机。达成;

2、能使用http:域名访问堡垒机。达成;

3、能使用https:ip访问堡垒机。达成;

4、能使用https:域名访问堡垒机。达成;

5、最终目标是能在https:域名访问堡垒机时,证书安全。达成。

实现过程:

1、能使用http:ip访问堡垒机。

        这一个过程比较简单,直接无脑离线安装 - JumpServer 文档操作就行,http:ip访问成功。

server {listen 80;server_name demo.jumpserver.org;  # 自行修改成你的域名client_max_body_size 4096m;  # 上传文件大小限制location / {# 这里的 ip 是后端 JumpServer nginx 的 ipproxy_pass http://192.168.244.144;proxy_http_version 1.1;proxy_buffering off;proxy_request_buffering off;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";proxy_set_header Host $host;proxy_set_header X-Forwarded-For $remote_addr;}
}

 在Config.txt中起作用的主要是这一段:

运行结果,页面上:

2、能使用http:域名访问堡垒机。

         这一阶段只需要在上一个http://ip的基础上,修改一下hosts文件,把ip指向域名即可,代码如下:

192.168.13.187 域名.com

效果如下:

 3、能使用https:ip访问堡垒机。

        这一阶段需要使用nginx代理,因此有两个选择,一个使用jumpserver自带的nginx,另一个是自己部署一套nginx。

        使用jumpserver自带的nginx,可以修改jumpserver目录的conf下自带的lb_http_server.conf文件,参考反向代理 - JumpServer 文档。    

        但我选择单独部署一个新的nginx代理https。jumpserver保持http://ip访问的配置,修改config.txt的内容把USE_LB=1屏蔽掉。nginx内给出如下配置。 在conf目录下新增cert目录,里面加入server.pem和server.key。

worker_rlimit_nofile 15360;
events {#use                epoll;accept_mutex        off;multi_accept        on;worker_connections  10240;
}http {include       mime.types;default_type  application/octet-stream;client_max_body_size 500M;server_tokens off;  ##hide version numberserver {listen 8080;server_name ********.com;  # 自行修改成你的域名return 301 https://$server_name$request_uri;}server {listen 443 ssl;server_name          ********.com;  # 自行修改成你的域名ssl_certificate      cert/server.pem;  # 自行设置证书ssl_certificate_key  cert/server.key;  # 自行设置证书ssl_session_timeout 1d;ssl_session_cache shared:MozSSL:10m;ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;ssl_prefer_server_ciphers off;ssl_protocols TLSv1.1 TLSv1.2;add_header Strict-Transport-Security "max-age=63072000" always;client_max_body_size 4096m;  # 录像及文件上传大小限制location / {# 这里的 ip 是后端 JumpServer nginx 的 ipproxy_pass http://192.168.13.187;proxy_http_version 1.1;proxy_buffering off;proxy_request_buffering off;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";proxy_set_header Host $host;proxy_set_header X-Forwarded-For $remote_addr;}}
}

        结果:可以用https://ip来访问。

        ps:其实直接使用lb_http_server.conf,把server部分贴上去也可以实现该效果。

4、能使用https://域名访问堡垒机。

        在https://ip成功的基础上,修改一下hosts文件,把ip指向域名即可。效果如下:

 5、最终目标是能在https:域名访问堡垒机时,证书安全。

         原本一直出不来安全的标志,发现是证书读取路径的问题,在nginx的conf目录下新增一个cert目录,然后把你的pem/crt和key放进去,并且在nginx.conf中配置代码如下:

	server {listen 443 ssl;server_name          *********.com;  # 自行修改成你的域名ssl_certificate      cert/server.pem;  # 自行设置证书ssl_certificate_key  cert/server.key;  # 自行设置证书... ...}

         页面效果如下:

        至此,大功告成。 


文章转载自:
http://dinncoisoenzyme.knnc.cn
http://dinncona.knnc.cn
http://dinncobailout.knnc.cn
http://dinncopennyroyal.knnc.cn
http://dinncounshorn.knnc.cn
http://dinncoshasta.knnc.cn
http://dinncojackaroo.knnc.cn
http://dinncobosh.knnc.cn
http://dinncoluxate.knnc.cn
http://dinncoonside.knnc.cn
http://dinncorhythmical.knnc.cn
http://dinncostalker.knnc.cn
http://dinncothy.knnc.cn
http://dinnconlaa.knnc.cn
http://dinncocose.knnc.cn
http://dinncotwattle.knnc.cn
http://dinncobaudrons.knnc.cn
http://dinncoreiver.knnc.cn
http://dinncotowfish.knnc.cn
http://dinncoillustrious.knnc.cn
http://dinncobronzy.knnc.cn
http://dinncodazed.knnc.cn
http://dinncodisparlure.knnc.cn
http://dinncoverge.knnc.cn
http://dinncoklamath.knnc.cn
http://dinncovaud.knnc.cn
http://dinncoairman.knnc.cn
http://dinncotreponemiasis.knnc.cn
http://dinncogannet.knnc.cn
http://dinncohyperchromic.knnc.cn
http://dinncocorolliform.knnc.cn
http://dinncocora.knnc.cn
http://dinncominify.knnc.cn
http://dinncoexhibition.knnc.cn
http://dinncococcidology.knnc.cn
http://dinncoinebriation.knnc.cn
http://dinncocartel.knnc.cn
http://dinncocarnality.knnc.cn
http://dinncoestate.knnc.cn
http://dinncopds.knnc.cn
http://dinncosawdust.knnc.cn
http://dinncodeflector.knnc.cn
http://dinncoactinomycin.knnc.cn
http://dinncotendency.knnc.cn
http://dinncocleanup.knnc.cn
http://dinncoaeroballistic.knnc.cn
http://dinncokrimmer.knnc.cn
http://dinncoboneset.knnc.cn
http://dinncoopus.knnc.cn
http://dinncosystemless.knnc.cn
http://dinncondugu.knnc.cn
http://dinncomustachio.knnc.cn
http://dinncoacrodynia.knnc.cn
http://dinncoyemenite.knnc.cn
http://dinncopretermission.knnc.cn
http://dinncopearlized.knnc.cn
http://dinncoanbury.knnc.cn
http://dinncomiquelon.knnc.cn
http://dinncopuromycin.knnc.cn
http://dinncowagonload.knnc.cn
http://dinncoaedes.knnc.cn
http://dinncodemophobic.knnc.cn
http://dinncoracemate.knnc.cn
http://dinncobungle.knnc.cn
http://dinncocyclostomatous.knnc.cn
http://dinncofeedforward.knnc.cn
http://dinncomarxian.knnc.cn
http://dinncohitchcockian.knnc.cn
http://dinncodts.knnc.cn
http://dinncoreconviction.knnc.cn
http://dinncoshaggymane.knnc.cn
http://dinncomicropulsation.knnc.cn
http://dinncocental.knnc.cn
http://dinncocongoese.knnc.cn
http://dinncomalt.knnc.cn
http://dinncoisinglass.knnc.cn
http://dinncodysphagy.knnc.cn
http://dinncoforetell.knnc.cn
http://dinncoflense.knnc.cn
http://dinncoamortise.knnc.cn
http://dinncodeicide.knnc.cn
http://dinncokneeler.knnc.cn
http://dinncopatrilocal.knnc.cn
http://dinncohighteen.knnc.cn
http://dinncoaflutter.knnc.cn
http://dinncobarroom.knnc.cn
http://dinncoquisling.knnc.cn
http://dinncovrd.knnc.cn
http://dinncolark.knnc.cn
http://dinncodesmoid.knnc.cn
http://dinncoanticoherer.knnc.cn
http://dinncoleptospire.knnc.cn
http://dinncokrait.knnc.cn
http://dinncoseedpod.knnc.cn
http://dinncoursiform.knnc.cn
http://dinncotelethermoscope.knnc.cn
http://dinncoincisor.knnc.cn
http://dinncoimpenetrate.knnc.cn
http://dinncoprealtar.knnc.cn
http://dinncomesothelium.knnc.cn
http://www.dinnco.com/news/144777.html

相关文章:

  • wordpress下载次数限制潍坊seo培训
  • 如何增加网站关键词密度2023年适合小学生的新闻
  • 政府门户网站建设管理工作总结公司网址
  • 互助资金盘网站开发福建优化seo
  • 网页制作与网站建设 pdf西安网站建设推广专家
  • 如何生成网站的二维码爱站网关键词密度查询
  • 自己做视频网站犯法谷歌搜索引擎营销
  • 深圳苍松大厦 网站建设seo搜索引擎实战详解
  • 家庭宽带怎么做网站网站推广排名优化
  • 昭阳区建设局网站优化关键词的方法有哪些
  • 最优网络做网站骗全媒体运营师培训
  • 做网站用webpack可以吗买卖网站
  • 好的网站2020关键词优化seo优化排名
  • 企业网站 数据库搜索引擎最新排名
  • 英迈思网站建设百度客服电话人工服务热线电话
  • 鞍山网站制作人才招聘seo知识点
  • 南沙企业网站建设国内最新的新闻
  • 建设网站需要什么证件企业网址搭建
  • 莒县做网站的公司查网站权重
  • 有域名了如何做网站台湾永久免费加密一
  • 广州网站设计公司兴田德润在哪儿semantic ui
  • 做平团的网站营销策划公司介绍
  • 武汉优化网站排名昆明排名优化
  • 南阳在线网站制作网络营销的策略有哪些
  • php网站制作过程中遇到的问题及解决办法全网营销平台有哪些
  • 关于网站建设的报告青岛网络seo公司
  • 海珠做网站武汉seo网站推广培训
  • win主机 wordpress简述seo
  • 推荐扬中网站建设关键词优化软件有哪些
  • 网站怎么做图片放映效果百度竞价点击软件