码迷,mamicode.com
首页 > Web开发 > 详细

配置安全域名https申请免费证书并配置nginx运行环境

时间:2018-10-26 19:41:19      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:分享   timeout   span   cipher   ima   cert   script   技术   这一   

技术分享图片技术分享图片技术分享图片

技术分享图片

补全信息时选项

技术分享图片

在这一步需要去查看进度,下载对应文件上传到对应站点根目录里按照要求建的隐藏类型的文件 如下图

技术分享图片

技术分享图片

技术分享图片

技术分享图片

技术分享图片

技术分享图片

讲证书文件按照下面操作

技术分享图片

技术分享图片

技术分享图片

进行配置项配置https 如下

技术分享图片

技术分享图片

详情下载附件

server {

  listen 443;

  server_name wap.ssgsrz.com;

   ssl on;

   root /web/wap_ssgsrzw;

   index index.html index.htm;

  ssl_certificate cert/214757429410741.pem;

  ssl_certificate_key cert/214757429410741.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 / {

    root /web/wap_ssgsrzw;

     index index.html index.htm index.php;

   }

   location ~ .*\.(php|php5)?$ {

    root /web/wap_ssgsrzw;

     fastcgi_pass 127.0.0.1:9000;

     fastcgi_index index.php;

     fastcgi_param HTTPS on;

     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

     include fastcgi_params; #new line include fastcgi.conf;

   }

}

 

配置安全域名https申请免费证书并配置nginx运行环境

标签:分享   timeout   span   cipher   ima   cert   script   技术   这一   

原文地址:https://www.cnblogs.com/zmdComeOn/p/9857650.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!