当前位置: 移动技术网 > IT编程>开发语言>PHP > 配置安全域名https申请免费证书并配置nginx运行环境

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

2018年10月27日  | 移动技术网IT编程  | 我要评论

补全信息时选项

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

讲证书文件按照下面操作

进行配置项配置https 如下

详情下载附件

server {

  listen 443;

  server_name wap.ssgsrz.com;

   ssl on;

   root /web/wap_ssgsrzw;

   index 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.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;

   }

}

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网