首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >nginx启动报错?

nginx启动报错?

提问于 2019-07-12 23:04:31
回答 0关注 0查看 789

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.

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档