LNMP HTTPS网站无法访问-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

LNMP HTTPS网站无法访问

刘刚_ 2020-05-13 16:56:44 78

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

我的这个网站总是间断性访问,每过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

应用服务中间件 Linux 网络安全 PHP nginx
分享到
取消 提交回答
全部回答(1)
  • 刘刚_
    2020-05-13 16:57:18

    阿里云网络问题

    来源:思否

    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题