代理和读取时 NGINX(104:对等方重置连接)

代理和读取时 NGINX(104:对等方重置连接)

大家好,我的 NGINX 服务器出现了问题,这是我在代理和从上游读取时收到的错误(104:对等方重置连接),客户端:192.168.88.173,服务器:0.0.0.0:443,上游:“127.0.0.1:4445”,来自/到客户端的字节数:452/3037,来自/到上游的字节数:3037/697,而且只有当我尝试从 MacOSX 上的 Safari 浏览器在 Chrome 和 Firefox 上打开网站时才会发生这种情况,一切正常,在不同的 osx 电脑上测试,浏览器都说 Safari 无法打开页面“https://xxxxxxx/“因为服务器意外断开了连接。当服务器繁忙时有时会发生这种情况。请等待几分钟,然后重试。

这是配置文件 NGINX.conf


  GNU nano 2.9.3                                                          nginx.conf                                                                     

        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        keepalive_requests 256;
        types_hash_max_size 2048;
        # server_tokens off;


        # server_name_in_redirect off;

        include /etc/nginx/mime.types;
        default_type application/octet-stream;

        ##
        # SSL Settings
        ##

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
        ssl_prefer_server_ciphers on;

        ##
        # Logging Settings
        ##


the domain config

    location / {
       return 301 https://$host$request_uri;
    }
}
server {
    listen 4444 ssl http2;
    listen [::]:4444 ssl http2;
    server_name class.feip.biz;

    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers on;
    ssl_ciphers "EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA256:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EDH+a$

    add_header Strict-Transport-Security "max-age=31536000";

    ssl_certificate /etc/letsencrypt/live/class.feip.biz/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/class.feip.biz/privkey.pem;
    ssl_session_timeout 1d;
    ssl_stapling_verify on;
    ssl_session_cache shared:MozSSL:10m;
    proxy_buffers 8 16k; proxy_buffer_size 32k;


相关内容