宝塔面板教程:
ShopWT-宝塔面板-Nginx配置https教程.pdf
其它参考教程:
先开放端口443及33端口。
listen 443; ssl on; ssl_certificate /www/wwwroot/ssl/214570958540439.pem; ssl_certificate_key /www/wwwroot/ssl/214570958540439.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; if ($server_port !~ 443){ rewrite ^(/.*)$ https://$host$1 permanent; }