因为咱用的 Nginx 所以
打开
修改这个
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;
}
}
好现在重启下
测试下
https://mnif.cn/" target="_blank">https://mnif.cn/
扩展(支持https访问php文件)
不过这个只能访问html 咱加上PHP
测试
https://mnif.cn/ceshi.php" target="_blank">https://mnif.cn/ceshi.php