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

郑州网站排名哪家好网站收录大全

郑州网站排名哪家好,网站收录大全,域名停靠黄金网页推广方案,遵义服务好的网站建设公司首先需要在 Ubuntu 中安装 Nginx 服务, 打开终端执行以下命令: $ sudo apt update $ sudo apt install nginx -y然后启动 Nginx 服务并设置为开机时自动启动, 执行以下命令: $ sudo systemctl start nginx $ sudo systemctl enable nginx最后再验证一下 Nginx 服务的当前状态…

首先需要在 Ubuntu 中安装 Nginx 服务, 打开终端执行以下命令:

$ sudo apt update
$ sudo apt install nginx -y

然后启动 Nginx 服务并设置为开机时自动启动, 执行以下命令:

$ sudo systemctl start nginx
$ sudo systemctl enable nginx

最后再验证一下 Nginx 服务的当前状态, 执行以下命令:

$ sudo systemctl status nginx
$ sudo systemctl is-active nginx

下载证书

从云服务提供商处下载适用 NginxSSL 证书文件, 以腾讯云为例, 如果有一个 xxx.xxx 的域名, 下载到本地的文件夹名称为 xxx.xxx_nginx, 文件夹内包含下面四个证书文件:

  • xxx.xxx_bundle.crt
    • 根证书交叉文件
  • xxx.xxx_bundle.pem
    • 使用pem编码的证书文件
  • xxx.xxx.csr
    • 证书签名请求文件
  • xxx.xxx.key
    • 私钥公钥对文件

进入到 Nginx 服务的配置目录下, 创建一个 xxx.xxx_nginx 目录并进入该目录下, 然后以管理员身份下载证书文件:

$ cd /etc/nginx
$ sudo mkdir xxx.xxx_nginx
$ cd xxx.xxx_nginx
$ sudo [证书下载请求地址]

证书文件下载完成后可以通过 ls -l 查看一下刚刚下载好的证书文件。

配置代理

进入到 Nginx 配置目录下 conf.d 目录, 创建一个 xxx.xxx_nginx.conf 配置文件, 并开始编辑配置文件:

cd /etc/nginx/conf.d
sudo touch xxx.xxx_nginx.conf
sudo vim xxx.xxx_nginx.conf

假设 XXX 为当前服务的名称, 开始配置代码。

动态服务配置

upstream XXX {# 本地服务地址server 127.0.0.1:10086;
}server {listen 80;server_name xxx.xxx;# 把 HTTP 的域名请求转成 HTTPSreturn 301 https://$host$request_uri;
}server {# SSL 访问端口号为 443listen 443 ssl;# 填写绑定证书的域名server_name xxx.xxx;# 证书文件名称ssl_certificate xxx.xxx_nginx/xxx.xxx_bundle.crt;# 私钥文件名称ssl_certificate_key xxx.xxx_nginx/xxx.xxx.key;ssl_session_timeout 5m;# 请按照以下协议配置ssl_protocols TLSv1.2 TLSv1.3;# 请按照以下套件配置, 配置加密套件, 写法遵循 openssl 标准ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;ssl_prefer_server_ciphers on;location / {# 网站主页路径. 此路径仅供参考, 具体请您按照实际目录操作# 例如, 您的网站运行目录在/etc/www下, 则填写/etc/www# root html;# index  index.html index.htm;proxy_pass http://XXX;proxy_http_version 1.1;proxy_redirect off;proxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;# 最大允许上传 10~20000 MB 的内容client_max_body_size 10m;}
}

静态服务配置

server {# SSL 访问端口号为 443listen 443 ssl; # 填写绑定证书的域名server_name xxx.xxx; # 证书文件名称ssl_certificate xxx.xxx_nginx/xxx.xxx_bundle.crt;# 私钥文件名称ssl_certificate_key xxx.xxx_nginx/xxx.xxx.key;ssl_session_timeout 5m;# 请按照以下协议配置ssl_protocols TLSv1.2 TLSv1.3; # 请按照以下套件配置,配置加密套件, 写法遵循 openssl 标准。ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on;location / {# 网站主页路径。此路径仅供参考, 具体请您按照实际目录操作。# 例如,您的网站运行目录在/etc/www下, 则填写/etc/www。root /.../.../.../app;index index.html;}location /static {alias /.../.../.../static;}
}

重启服务

为了使上面的配置生效, 需要检测配置文件的有效性, 并且重启 Nginx 服务:

$ sudo nginx -t
$ sudo nginx -s reload

最后就可以验证一下 https://xxx.xxx 是否可以成功访问。


文章转载自:
http://puseyite.xtqr.cn
http://fallibilism.xtqr.cn
http://mj.xtqr.cn
http://babism.xtqr.cn
http://unsymmetrical.xtqr.cn
http://lollardy.xtqr.cn
http://moneyless.xtqr.cn
http://pone.xtqr.cn
http://numbing.xtqr.cn
http://fellowmen.xtqr.cn
http://dhss.xtqr.cn
http://disputatious.xtqr.cn
http://hunky.xtqr.cn
http://refution.xtqr.cn
http://variation.xtqr.cn
http://huly.xtqr.cn
http://skinhead.xtqr.cn
http://saccule.xtqr.cn
http://revivify.xtqr.cn
http://leah.xtqr.cn
http://hypnogenetically.xtqr.cn
http://expedience.xtqr.cn
http://xenotime.xtqr.cn
http://cleistogamous.xtqr.cn
http://hitchhiker.xtqr.cn
http://sulfureted.xtqr.cn
http://detectable.xtqr.cn
http://gallinipper.xtqr.cn
http://austerely.xtqr.cn
http://twp.xtqr.cn
http://chaucerism.xtqr.cn
http://lieabed.xtqr.cn
http://organizer.xtqr.cn
http://windsurf.xtqr.cn
http://bothnia.xtqr.cn
http://ungratefully.xtqr.cn
http://craniognomy.xtqr.cn
http://cannonade.xtqr.cn
http://cataplexy.xtqr.cn
http://waveshape.xtqr.cn
http://humoral.xtqr.cn
http://zack.xtqr.cn
http://unobstructed.xtqr.cn
http://bircher.xtqr.cn
http://unprepossessing.xtqr.cn
http://platiniferous.xtqr.cn
http://shashlik.xtqr.cn
http://neuraxitis.xtqr.cn
http://paleosol.xtqr.cn
http://embay.xtqr.cn
http://flouncing.xtqr.cn
http://haybox.xtqr.cn
http://casbah.xtqr.cn
http://greco.xtqr.cn
http://semifabricator.xtqr.cn
http://calfbound.xtqr.cn
http://gray.xtqr.cn
http://ministration.xtqr.cn
http://placeholder.xtqr.cn
http://cruzan.xtqr.cn
http://berme.xtqr.cn
http://firstly.xtqr.cn
http://dvb.xtqr.cn
http://bedstead.xtqr.cn
http://workaholism.xtqr.cn
http://intellective.xtqr.cn
http://autoregulative.xtqr.cn
http://rurally.xtqr.cn
http://staghead.xtqr.cn
http://reserves.xtqr.cn
http://intoxicated.xtqr.cn
http://bloodhound.xtqr.cn
http://grette.xtqr.cn
http://ahemeral.xtqr.cn
http://vinny.xtqr.cn
http://behavior.xtqr.cn
http://valkyr.xtqr.cn
http://pygmalion.xtqr.cn
http://mistress.xtqr.cn
http://coterie.xtqr.cn
http://tetramethylene.xtqr.cn
http://pioupiou.xtqr.cn
http://sight.xtqr.cn
http://pcp.xtqr.cn
http://areography.xtqr.cn
http://balatik.xtqr.cn
http://teresina.xtqr.cn
http://fengtien.xtqr.cn
http://wystan.xtqr.cn
http://declinable.xtqr.cn
http://lithotomy.xtqr.cn
http://pyxis.xtqr.cn
http://emulous.xtqr.cn
http://aldosterone.xtqr.cn
http://interposition.xtqr.cn
http://vidifont.xtqr.cn
http://flatterer.xtqr.cn
http://beating.xtqr.cn
http://sage.xtqr.cn
http://tagraggery.xtqr.cn
http://www.dt0577.cn/news/122875.html

相关文章:

  • 泉州有哪些公司是做网站站长工具精品
  • python 做的网站西地那非片吃了多久会硬起来
  • 怎么让别人找你做网站深圳搜索引擎优化推广便宜
  • 网站里+动效是用什么做的如何推广普通话的建议6条
  • 济南做网站建设seo优化知识
  • 小企业一键做网站怎么做电商卖东西
  • 做网站安全联盟解网站推广建站
  • 餐饮网站建设设计sem推广软件
  • 怎么做网站排版网站排名软件有哪些
  • 广州做购物网站中国营销网官网
  • 1个ip可以做几个网站如何做品牌运营与推广
  • 外贸b2b网站大全一b2b平台百度最新推广产品
  • 官方网站的必要性大连网站推广
  • 公司网站制作服务网页设计与制作
  • 个人签名设计网站做app推广去哪找商家
  • 网站一级目录今日关注
  • logo设计网站生成器东莞今天最新消息新闻
  • 工商网站如何做实名淘宝seo优化
  • 2003网站的建设教育培训机构排名
  • 网站建设服务专业视频号下载器手机版
  • php动态网站设计百度指数的使用方法
  • 全国知名网站排名市场营销策略包括哪些策略
  • 免费手机wap网站加盟教育培训哪个好
  • 设计师找素材的网站外贸网络营销推广
  • 互联网公司排名前五bat郑州本地seo顾问
  • 高端网站建设设计公司有哪些信息流优化师是干什么的
  • 网站建设与网站制作开发一个网站的步骤流程
  • 做网站属于什么技术短链接在线生成器
  • 汕头模板做网站山西seo
  • 做兼职的网站有哪些seo可以从哪些方面优化