nginx配置ssl证书

server {
        listen 80;
        server_name zhj.bjedu.com;
    rewrite ^/(.*) https://zhj.bjedu.com/$1 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;

 

posted on 2021-02-25 09:28  !!雪莲花!!  阅读(122)  评论(0)    收藏  举报