nginx : https 配置

 listen 80;
    listen 443 ssl;

    listen [::]:80;
    listen [::]:443 ssl;

    server_name localhost;
    charset utf-8;

    root /xx/xx;
    index index.html index.php;

    ssl_certificate     xxx.crt;
    ssl_certificate_key xx.key;

    ssl_session_cache shared:SSL:1m;
    ssl_session_timeout 5m;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers on;
    ssl_dhparam dhparam.pem;

参考:

 

http://blog.csdn.net/w410589502/article/details/72833283

posted on 2018-03-08 17:28  ZhYQ_note  阅读(117)  评论(0编辑  收藏  举报

导航