nginx配置ssl(配置文件),只列出部分内容。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| server { listen 80; server_name www.zenwu.site zenwu.site;
return 301 https://$server_name$request_uri; }
server { listen 443 ssl; server_name www.zenwu.site zenwu.site; ssl_certificate /home/ssl/www.zenwu.site_chain.crt; ssl_certificate_key /home/ssl/www.zenwu.site_key.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { root /home/www/zenwuhexo/; index index.html index.htm; } }
|
--------------本文结束 感谢您的阅读--------------