V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hahahe
V2EX  ›  程序员

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

  •  1
     
  •   hahahe · 2019-03-18 14:13:30 +08:00 · 10584 次点击
    这是一个创建于 1837 天前的主题,其中的信息可能已经有所发展或是发生改变。

    首先说明,域名确定没有被 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,求大神指点迷津啊!!

    3 条回复    2019-05-10 21:27:36 +08:00
    fuxinya
        1
    fuxinya  
       2019-03-18 16:01:15 +08:00 via Android
    看看防火墙规则
    masker
        2
    masker  
       2019-03-18 19:42:22 +08:00 via Android
    先 telenet 再发帖
    w7938940
        3
    w7938940  
       2019-05-10 21:27:36 +08:00
    遇到一样的问题,楼主有解决吗?服务器在阿里云,域名备案也在阿里云
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3233 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:40 · PVG 19:40 · LAX 04:40 · JFK 07:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.