nginx SSL证书基本配置

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

server {
    listen 443;
    server_name www.domain.com;
    ssl on;
    ssl_certificate cert/1_www.domain.com_bundle.crt;
    ssl_certificate_key cert/2_www.domain.com.key;
    ssl_session_timeout 5m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置
    ssl_prefer_server_ciphers on;
    location / {
        root   /var/www;
        index  index.html index.htm index.php;
    }
}   

转载于:https://my.oschina.net/yakoras/blog/839687

你可能感兴趣的:(nginx SSL证书基本配置)