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

开发者社区> 刘刚_> 正文

LNMP HTTPS网站无法访问

2020-05-13 16:56:44 232 1

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

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

取消 提交回答
全部回答(1)
  • 刘刚_
    2020-05-13 16:57:18

    阿里云网络问题

    来源:思否

    0 0
相关问答

29

回答

云计算之路:为什么要选择云计算

cnblogs 2013-03-27 10:22:27 142634浏览量 回答数 29

162

回答

惊喜翻倍:免费ECS+免费环境配置~!(ECS免费体验6个月活动3月31日结束)

豆妹 2014-10-29 17:52:21 222948浏览量 回答数 162

145

回答

【新手入门】云服务器linux使用手册

fanyue88888 2012-11-26 17:14:18 157049浏览量 回答数 145

22

回答

爬虫数据管理【问答合集】

我是管理员 2018-08-10 16:37:41 146751浏览量 回答数 22

18

回答

阿里云开放端口权限

xcxx 2016-07-20 15:03:33 643037浏览量 回答数 18

38

回答

安全组详解,新手必看教程

我的中国 2017-11-30 15:23:46 256839浏览量 回答数 38

294

回答

Linux Bash严重漏洞修复紧急通知(已全部给出最终修复方案)

qilu 2014-09-25 13:26:50 431584浏览量 回答数 294

249

回答

阿里云LNAMP(Linux + Nginx + Apache + MySQL + PHP)环境一键安装脚本

云代维 2014-02-14 15:26:06 302568浏览量 回答数 249

40

回答

阿里云ecs从购买到环境搭建和建站!!(phpstudy一件包)

梦丫头 2014-07-29 20:51:49 162068浏览量 回答数 40

24

回答

【精品问答】python技术1000问(1)

问问小秘 2019-11-15 13:25:00 471282浏览量 回答数 24
+关注
刘刚_
努力努力再努力
5
文章
429
问答
推荐问答
相关电子书
更多
文娱运维技术
立即下载
《SaaS模式云原生数据仓库应用场景实践》
立即下载
《看见新力量:二》电子书
立即下载