标签:重启 htm conf 解压 ECDHE location 证书 ref out
rz -E 3198872_www.mcl2rock.cn_nginx.zip
mkdir -p /etc/nginx/cert
unzip 3198872_www.mcl2rock.cn_nginx.zip
server {
listen 80;
listen 443 ssl;
# server_name localhost;
server_name www.mcl2rock.cn;
root /usr/share/nginx/html/public;
index index.html index.htm;
ssl_certificate "/etc/nginx/cert/3198872_www.mcl2rock.cn.pem";
ssl_certificate_key "/etc/nginx/cert/3198872_www.mcl2rock.cn.key";
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
root html;
index index.html index.htm;
}
}
nginx -s reload
标签:重启 htm conf 解压 ECDHE location 证书 ref out
原文地址:https://www.cnblogs.com/zhaoxxnbsp/p/13280611.html