• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hahahe
V2EX  ›  程序员

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

  •  1
     
  •   hahahe · Mar 18, 2019 · 11237 views
    This topic created in 2647 days ago, the information mentioned may be changed or developed.

    首先说明,域名确定没有被 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 replies    2019-05-10 21:27:36 +08:00
    fuxinya
        1
    fuxinya  
       Mar 18, 2019 via Android
    看看防火墙规则
    masker
        2
    masker  
       Mar 18, 2019 via Android
    先 telenet 再发帖
    FarAhead
        3
    FarAhead  
       May 10, 2019
    遇到一样的问题,楼主有解决吗?服务器在阿里云,域名备案也在阿里云
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1136 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 23:09 · PVG 07:09 · LAX 16:09 · JFK 19:09
    ♥ Do have faith in what you're doing.