因为咱用的 Nginx 所以

4-OpenResty 配置 https 访问_Nginx




4-OpenResty 配置 https 访问_php_02


打开

4-OpenResty 配置 https 访问_Nginx_03





修改这个

4-OpenResty 配置 https 访问_nginx_04





server {
listen 443 ssl;
server_name mnif.cn; #填写绑定证书的域名

ssl_certificate 2467785_www.mnif.cn_nginx/2467785_www.mnif.cn.pem;
ssl_certificate_key 2467785_www.mnif.cn_nginx/2467785_www.mnif.cn.key;

ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #支持的TLS协议

ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#支持的加密算法
ssl_prefer_server_ciphers on;

location / {
root html;
index index.html index.htm;
}
}



4-OpenResty 配置 https 访问_Nginx_05




4-OpenResty 配置 https 访问_OpenResty_06




好现在重启下

4-OpenResty 配置 https 访问_html_07



 4-OpenResty 配置 https 访问_html_08




4-OpenResty 配置 https 访问_nginx_09




4-OpenResty 配置 https 访问_html_10





测试下


https://mnif.cn/" target="_blank">​https://mnif.cn/​

4-OpenResty 配置 https 访问_php_11








扩展(支持https访问php文件)



不过这个只能访问html  咱加上PHP

4-OpenResty 配置 https 访问_php_12



测试

https://mnif.cn/ceshi.php" target="_blank">​https://mnif.cn/ceshi.php​

4-OpenResty 配置 https 访问_Nginx_13