配置SSL:
listen 443 ssl http2;
server_name iz7z8.net;
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/iz7z8.net/public/;
ssl on;
#配置共享会话缓存大小 #配置会话超时时间
ssl_certificate_key /server/nginx/conf/vhost/private.pem;
ssl_certificate /server/nginx/conf/vhost/certificate.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
#ssl_ciphers ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM;
#部分地区浏览器会出现ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY错误,所以注释
ssl_ciphers EECDH+AES128:HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
红线部分在部分地区的部分网络浏览器上是可以正常访问,但部分不正常。在我手机的4G网络上就是好的,但在海南移动网络就出现:
![](data/attachment/forum/202302/24/2023-02-24_16-09-54_509.jpg)
调整以后:
![](data/attachment/forum/202302/24/2023-02-24_16-09-54_792.jpg) |