nginx 启动 http2后出现错误:net::ERR_CONNECT

cn_yaojin 2018-03-31 11:40:30
在centos 7上 配置nginx,并启动http2 后报错:net::ERR_CONNECT ,但是在windows的测试服务器上是正确的,切换到linux上就报错。


域名支持https,证书配置都没有问题
openssl 在centos7上的版本是1.1.0e

输入 nginx -V后显示的信息如下:

nginx version: nginx/1.11.3
built by gcc 3.4.6 20060404 (Red Hat 3.4.6-3)
built with OpenSSL 1.0.2i 22 Sep 2016
TLS SNI support enabled
configure arguments: --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-
http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --
with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --
with-mail --with-mail_ssl_module --with-ipv6 --with-stream --with-stream_ssl_module --with-threads --user=www --group=www
...全文
1711 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
孟子E章 2018-04-01
  • 打赏
  • 举报
回复
这个看一下nginx.log,看看里面是否有记录错误信息,并检查下
server { listen 443 ssl 里面的配置是否正确

参考下这篇文章
https://yq.aliyun.com/ziliao/29065

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧