1. 程式人生 > >配置安全域名https申請免費證書並配置nginx運行環境

配置安全域名https申請免費證書並配置nginx運行環境

listen script 免費 file ssl nbsp tps 證書 查看

技術分享圖片技術分享圖片技術分享圖片

技術分享圖片

補全信息時選項

技術分享圖片

在這一步需要去查看進度,下載對應文件上傳到對應站點根目錄裏按照要求建的隱藏類型的文件 如下圖

技術分享圖片

技術分享圖片

技術分享圖片

技術分享圖片

技術分享圖片

技術分享圖片

講證書文件按照下面操作

技術分享圖片

技術分享圖片

技術分享圖片

進行配置項配置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運行環境