现在访问的话自动跳转到https
居然是免费的证书。。。22号申请的
nginx.conf 加入:
listen 80;
listen 443 ssl http2;
#listen [::]:80;
ssl_certificate /etc/letsencrypt/live/root9000.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/root9000.com/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_timeout 10m;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_buffer_size 1400;
add_header Strict-Transport-Security max-age=15768000;
ssl_stapling on;
server_name root9000.com www.root9000.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/root9000.com;
if ($ssl_protocol = "") { return 301 https://$server_name$request_uri; }
继续阅读
最近发现百度支持https访问了,为了防止运营商将您的隐私给卖了,推荐加入使用。
利用opensearch写的,具体可见官网介绍。
效果如下支持各大类型浏览器 继续阅读