# blog server { listen443 ssl ; ssl_certificate /etc/nginx/sites-available/1_blog.blog4xiang.world_bundle.crt; # 腾讯云给出的证书(名字要改成自己的) ssl_certificate_key /etc/nginx/sites-available/2_blog.blog4xiang.world.key; # 腾讯云给出的私钥(名字要改成自己的) ssl_session_timeout5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_cipherson; root /home/hexo/blog; index index.html index.htm index.nginx-debian.html; server_name _; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files$uri$uri/ =404; } }
# shiny-server server { server_name shiny.blog4xiang.world; listen443 ssl;