开发者社区> 问答> 正文

LNMP HTTPS网站无法访问

我刚好遇到了这个问题,发现思否上有相似问题请查看

我的这个网站总是间断性访问,每过4、5分钟就能访问一次,然后就不能访问了 我在linux本地用wget能抓取到网页的,但是远程浏览器却无法访问 后来我发现用普通的http能正常访问,但是用https访问却有这个问题,我的证书是有效的。请问这要怎么处理?

这是Nginx配置,下面是Nginx日志

server
{
        listen 443 ssl;
        server_name domain.org;
        keepalive_timeout 70;
        root /usr/local/nginx/html/domain;
        index index.php index.html index.htm;
        ssl_certificate /usr/local/nginx/html/domain_cert/domain.org.crt;
        ssl_certificate_key /usr/local/nginx/html/domain_cert/domain.org.key;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers on;

        ssl_session_timeout 5m;

        location ~ \.php$
        {
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }
}
2019/07/06 14:43:08 [info] 8339#0: *63 client x.x.x.x closed keepalive connection
2019/07/06 14:45:10 [info] 8339#0: *65 recv() failed (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:10 [info] 8339#0: *66 recv() failed (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:10 [info] 8339#0: *67 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:10 [info] 8339#0: *68 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:10 [info] 8339#0: *69 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:10 [info] 8339#0: *70 recv() failed (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:10 [info] 8339#0: *71 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:10 [info] 8339#0: *72 recv() failed (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:10 [info] 8339#0: *73 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:10 [info] 8339#0: *74 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:11 [info] 8339#0: *75 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:11 [info] 8339#0: *76 recv() failed (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:11 [info] 8339#0: *77 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:12 [info] 8339#0: *78 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:12 [info] 8339#0: *79 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:12 [info] 8339#0: *80 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:13 [info] 8339#0: *84 recv() failed (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:13 [info] 8339#0: *85 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:13 [info] 8339#0: *86 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:13 [info] 8339#0: *87 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:13 [info] 8339#0: *88 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:13 [info] 8339#0: *89 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:13 [info] 8339#0: *90 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:45:13 [info] 8339#0: *91 recv() failed (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:35 [info] 8339#0: *81 client x.x.x.x closed keepalive connection
2019/07/06 14:46:39 [info] 8339#0: *100 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:39 [info] 8339#0: *101 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:40 [info] 8339#0: *102 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:40 [info] 8339#0: *103 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:41 [info] 8339#0: *104 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:41 [info] 8339#0: *105 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:41 [info] 8339#0: *106 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:42 [info] 8339#0: *107 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:42 [info] 8339#0: *108 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:42 [info] 8339#0: *109 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:43 [info] 8339#0: *110 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443
2019/07/06 14:46:43 [info] 8339#0: *111 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking, client: x.x.x.x, server: 0.0.0.0:443

系统版本 CentOS Linux release 7.3.1611 (Core) nginx/1.17.1 MariaDB-10.4.6 PHP 7.3.6 (fpm-fcgi) (built: Jul 4 2019 16:18:12) 补充 做了一次抓包(虽然我也不会分析),发现在clienthello后服务器就会返回RST包。每次都是这样。 image.png

展开
收起
刘刚_ 2020-05-13 16:56:44 1231 0
1 条回答
写回答
取消 提交回答
  • 努力努力再努力

    阿里云网络问题

    来源:思否

    2020-05-13 16:57:18
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里巴巴HTTP 2.0实践及无线通信协议的演进之路 立即下载
CDN助力企业网站进入HTTPS时代 立即下载
低代码开发师(初级)实战教程 立即下载