本文章主要介绍了nginx配置ssl证书,具有不错的的参考价值,希望对您有所帮助,如解说有误或未考虑完全的地方,请您留言指出,谢谢!
server { listen 80; server_name zhj.bjedu.com; rewrite ^/(.*) https://zhj.bjedu.com/\ permanent; } server { listen 443 ssl; server_name zhj.bjedu.com; #设置长连接 keepalive_timeout 70; ssl_certificate /usr/local/nginx/cert/zhj.pem; ssl_certificate_key /usr/local/nginx/cert/zhj.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; server_tokens off;
原创文章,作者:carmelaweatherly,如若转载,请注明出处:https://blog.ytso.com/228366.html