nginx: [warn] invalid value "TLSv1.1" in /usr/local/nginx/conf/nginx.conf:58
server {
listen 443;
server_name 域名; #填写绑定证书的域名
ssl on;
root /root; #网站主页路径。此路径仅供参考,具体请您按照实际目录操作。
index index.html index.htm;
ssl_certificate /usr/local/nginx/conf/1_garbage.roboway.cn_bundle.crt;#证书文件名称
ssl_certificate_key /usr/local/nginx/conf/2_garbage.roboway.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 /root; #网站主页路径。此路径仅供参考,具体请您按照实际目录操作。
index index.html index.htm;
}
}
server {
listen 80;
server_name 域名; #填写绑定证书的域名
rewrite ^(.*)$ https://$host$1 permanent; #把http的域名请求转成https
}
域名填的是真实的
nginx 版本1.1.10
opessll版本1.0.1t.
相似问题