配置安全域名https申请免费证书并配置nginx运行环境
补全信息时选项
在这一步需要去查看进度,下载对应文件上传到对应站点根目录里按照要求建的隐藏类型的文件 如下图
讲证书文件按照下面操作
进行配置项配置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://www.cnblogs.com/zmdComeOn/
个性签名:努力生活,努力走路
阿里云拼团:https://www.aliyun.com/1111/home?userCode=f4ee1llo1核2G1M,86一年,229三年;2核4G5M,799三年;2核8G5M,1399三年
腾讯云三月采购计划特价:https://cloud.tencent.com/act/cps/redirect?redirect=1073&cps_key=15d0b1673287c43fe946626d9f4e2eee&from=console1核2G1M,88一年;1核2G1M,268三年;2核4G5M,998一年;4核8G5M,2888元三年