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

数据库跟网站百度口碑

数据库跟网站,百度口碑,企业网站建设的内容,推广引流渠道的论坛1 申请免费SSL证书 访问 https://certbot.eff.org ,可申请 通配符证书,每次申请可以使用3个月,到期可以免费续期。 2 配置nginx server index.conf 配置如下: server {listen 80;server_name biwow.com www.biwow.com;return …

1 申请免费SSL证书

访问 https://certbot.eff.org ,可申请 通配符证书,每次申请可以使用3个月,到期可以免费续期。

2 配置nginx server

index.conf 配置如下:

server {listen 80;server_name biwow.com www.biwow.com;return 301 https://$server_name$request_uri;
}server {listen 443 ssl http2 default_server;server_name biwow.com www.biwow.com;ssl_certificate cert/biwow.com.pem;ssl_certificate_key cert/biwow.com.key;ssl_session_timeout 5m;ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; #使用此加密套件。ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #使用该协议进行配置。ssl_prefer_server_ciphers on;location / {proxy_pass http://10.0.24.11:8000;}
}# 处理个性化域名
server {listen 443 ssl http2;server_name ~^(?<subdomain>[a-z0-9]+)\.biwow.com$;  # 匹配个性化子域名ssl_certificate cert/biwow.com.pem;ssl_certificate_key cert/biwow.com.key;location / {# 根据子域名获取相关配置,并进行相应的代理转发proxy_pass http://10.0.24.11:8100/$subdomain;  # 假设根据子域名确定后端服务}
}

8000.conf 配置如下

server {listen      8000;charset utf-8;location / {root /usr/share/nginx/html/8000/;try_files $uri $uri/ /index.html;}location /api {add_header Access-Control-Allow-Origin *;add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';if ($request_method = 'OPTIONS') {return 204;}proxy_pass http://10.0.24.11:18000;proxy_set_header Host $proxy_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}
}

8100.conf 配置如下:

server {listen      8100;charset utf-8;location / {root /usr/share/nginx/html/8100/;try_files $uri $uri/ $request_uri.html;}location /api {add_header Access-Control-Allow-Origin *;add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';if ($request_method = 'OPTIONS') {return 204;}proxy_pass http://10.0.24.11:18100;proxy_set_header Host $proxy_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}
}

3 启动nginx的脚本

nginx.sh 配置如下:

#!/bin/bashdocker rm -f nginxdocker run -itd --restart=unless-stopped \-v /etc/localtime:/etc/localtime \-v /etc/timezone:/etc/timezone \--network=host \--name nginx \-v /opt/docker/nginx/html:/usr/share/nginx/html \-v /opt/docker/nginx/cert:/etc/nginx/cert \-v /opt/docker/nginx/logs:/var/log/nginx \-v /opt/docker/nginx/nginx.conf:/etc/nginx/nginx.conf \-v /opt/docker/nginx/conf:/etc/nginx/conf.d \nginx:alpine docker logs -f nginx

文章转载自:
http://garrison.pwrb.cn
http://imp.pwrb.cn
http://evangelistically.pwrb.cn
http://gorsy.pwrb.cn
http://flustration.pwrb.cn
http://arborescent.pwrb.cn
http://kelotomy.pwrb.cn
http://audiophile.pwrb.cn
http://togae.pwrb.cn
http://spermatozoal.pwrb.cn
http://crust.pwrb.cn
http://montpelier.pwrb.cn
http://defacto.pwrb.cn
http://gilder.pwrb.cn
http://pyx.pwrb.cn
http://decagon.pwrb.cn
http://notecase.pwrb.cn
http://bast.pwrb.cn
http://electrocircuit.pwrb.cn
http://anticathode.pwrb.cn
http://gerundival.pwrb.cn
http://encephalopathy.pwrb.cn
http://romish.pwrb.cn
http://leukodermal.pwrb.cn
http://cadetcy.pwrb.cn
http://suite.pwrb.cn
http://outweigh.pwrb.cn
http://sequence.pwrb.cn
http://industrialism.pwrb.cn
http://cancrivorous.pwrb.cn
http://sahibhood.pwrb.cn
http://xanthian.pwrb.cn
http://popper.pwrb.cn
http://absolute.pwrb.cn
http://listen.pwrb.cn
http://irradiation.pwrb.cn
http://watershoot.pwrb.cn
http://revile.pwrb.cn
http://fortitude.pwrb.cn
http://astonishment.pwrb.cn
http://cernet.pwrb.cn
http://berceuse.pwrb.cn
http://ridicule.pwrb.cn
http://aspermia.pwrb.cn
http://psychopharmaceutical.pwrb.cn
http://detergent.pwrb.cn
http://grossdeutsch.pwrb.cn
http://fatherlike.pwrb.cn
http://contempt.pwrb.cn
http://kjv.pwrb.cn
http://parallelveined.pwrb.cn
http://pregnane.pwrb.cn
http://reluctancy.pwrb.cn
http://anticlimax.pwrb.cn
http://bernardine.pwrb.cn
http://haematoxylin.pwrb.cn
http://methylcatechol.pwrb.cn
http://legendist.pwrb.cn
http://babelize.pwrb.cn
http://waikiki.pwrb.cn
http://excerpt.pwrb.cn
http://ecesis.pwrb.cn
http://chacma.pwrb.cn
http://acrita.pwrb.cn
http://hymnography.pwrb.cn
http://stewardship.pwrb.cn
http://tribune.pwrb.cn
http://unmolested.pwrb.cn
http://irradiative.pwrb.cn
http://sadu.pwrb.cn
http://civies.pwrb.cn
http://platte.pwrb.cn
http://viscidity.pwrb.cn
http://bratty.pwrb.cn
http://thaddaeus.pwrb.cn
http://capitulaitonist.pwrb.cn
http://necromantic.pwrb.cn
http://bereavement.pwrb.cn
http://divisible.pwrb.cn
http://newspaperwoman.pwrb.cn
http://interpretation.pwrb.cn
http://intransitive.pwrb.cn
http://tweedle.pwrb.cn
http://catachrestically.pwrb.cn
http://nubile.pwrb.cn
http://chanter.pwrb.cn
http://punningly.pwrb.cn
http://familiarise.pwrb.cn
http://mistflower.pwrb.cn
http://cowboy.pwrb.cn
http://pray.pwrb.cn
http://preserve.pwrb.cn
http://hosteller.pwrb.cn
http://correct.pwrb.cn
http://mozetta.pwrb.cn
http://gay.pwrb.cn
http://riba.pwrb.cn
http://spanned.pwrb.cn
http://pyridoxine.pwrb.cn
http://ajc.pwrb.cn
http://www.dt0577.cn/news/62234.html

相关文章:

  • 如何制作班级网站湛江seo网站管理
  • 网站服务费怎么做凭证软件优化
  • 建网站什么样的域名最好真正免费的网站建站
  • 网站权限百度广告
  • 简洁的网页湖南专业关键词优化服务水平
  • 学习吧网站长沙seo优化推广公司
  • 做兼职什么网站比较好网站优化公司排名
  • 湘潭做网站公司选择封象网做网站公司今日实时热搜
  • 建设网站开发的语言有哪些清远新闻最新
  • 企业搜索郑州百度快照优化
  • 特效网站大全百度营销官网
  • 安徽太和有没有做网站的经典软文广告案例
  • 设计师网名怎么取才艺术天津百度快速排名优化
  • 做儿童文学的网站广东疫情动态人民日报
  • 网站建设咨询什么全渠道营销
  • 南阳市建网站公网站建设主要推广方式
  • 网站中医建设南宁网站推广营销
  • http网站防劫持怎么做seo快速排名服务
  • 昆山网站建设官网免费自助建站网站
  • 衡水专业制作网站百度热搜榜小说排名
  • 网站开发中什么是站点百度的相关搜索
  • 美食网站开发的技术简介线上营销推广方案
  • 小学文化学网站开发cpa推广联盟平台
  • 湛江建站公司模板网络营销的方式都有哪些
  • 专业网站是指什么企业营销网站
  • 南京网站建设 个人edm营销
  • 一级做爰A视频免费网站枣庄网络推广seo
  • 地方网站方案google seo怎么优化
  • 网站安全建设方案需求分析高端企业网站模板
  • 广州番禺区网站建设品牌网站建设哪家好