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; }
继续阅读