[百思不得其解] Nginx 连接已重置 ERR_CONNECTION_RESET

2019-03-18 14:13:30 +08:00
 hahahe

首先说明,域名确定没有被 Q !
服务器只开放了 443 端口,Nginx 配置如下:

server {
        listen       443 ssl http2 fastopen=3 reuseport;
        server_name  abc.com;
        add_header   X-Frame-Options "DENY";
        add_header   Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";

        ssl_certificate      /usr/local/nginx/ssl/abc.pem;
        ssl_certificate_key  /usr/local/nginx/ssl/abc.key;
        ssl_dhparam          /etc/ssl/certs/dhparam.pem;
        ssl_session_cache    shared:SSL:5m;
        ssl_session_timeout  5m;
        ssl_protocols        TLSv1.2 TLSv1.3;
        ssl_early_data       on;
        ssl_prefer_server_ciphers  on;

        location / {
            root   html;
            aio    threads;
            index  index.php;
        }

        location ~ \.php$ {
            root           html;
            fastcgi_pass   unix:/usr/local/php/php-fpm.sock;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  HTTPS            $https;
            include        fastcgi_params;
        }
    }

访问 https://abc.com 总是连接已重置 ERR_CONNECTION_RESET,求大神指点迷津啊!!

10603 次点击
所在节点    程序员
3 条回复
fuxinya
2019-03-18 16:01:15 +08:00
看看防火墙规则
masker
2019-03-18 19:42:22 +08:00
先 telenet 再发帖
w7938940
2019-05-10 21:27:36 +08:00
遇到一样的问题,楼主有解决吗?服务器在阿里云,域名备案也在阿里云

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/545768

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX