https 能显著提高网络数据传输的安全性,保护用户的数据和隐私。此次我们采用的 Synmantec SSL 免费证书。希望能带给大家更好的用户体验。
Xiuno BBS 4.0 不绑定 URL,启用 ssl 不需要做任何修改,只需要设置好 nginx 即可。以下 nginx 设置供参考:
server {
listen 80;
server_name bbs.xiuno.com;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
listen 443 ssl;
server_name bbs.xiuno.com;
ssl on;
ssl_certificate cert/bbs.xiuno.com.pem;
ssl_certificate_key cert/bbs.xiuno.com.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
index index.html index.htm index.php;
root /home/xxxxxx;
access_log /home/xxxxx.log;
....
}
这样将所有的 http://bbs.xiuno.com/xxxx.htm 转发到了 https://bbs.xiuno.com/xxx.htm