Nginx下启用Https后502错误,如何解决

症状:浏览器输入我的域名出现502 Bad Gateway,浏览器地址栏显示安全(我用的是火狐地址前面绿色)

求问哪里不对,另外如果还需要什么信息请说,以及win版感觉人很少姑且直接发服务器问题版块好了……

使用版本:
seafile-server_6.0.7_win32.tar.gz
nginx-1.12.0.zip
python-2.7.13.msi
cn_windows_server_2016_x64

其他使用:
域名购买自阿里云,顺带使用了阿里云 云解析DNS

seafile设置(网页上设置的):
SERVICE_URL https://隐藏了我的域名
FILE_SERVER_ROOT https://隐藏了我的域名/seafhttp

seahub.error.log如下
[error] 3268#4592: *4 upstream sent unsupported FastCGI protocol version: 72 while reading response header from upstream, client: 192.168.1.1, server: 我的域名这里就手动隐藏了, request: “GET / HTTP/2.0”, upstream: “fastcgi://127.0.0.1:8000”, host: “我的域名这里就手动隐藏了”

下面是nginx.conf
worker_processes auto;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;

server {
    listen       80;
    server_name  这里隐藏了我的域名;
    rewrite ^(.*) https://$server_name$1 permanent;    # force redirect http to https
}
server {
    listen 443 http2;
    server_name 这里隐藏了我的域名;
    ssl on;
    ssl_certificate   C:/cert/阿里云证书同样隐藏.pem;
    ssl_certificate_key  C:/cert/阿里云证书同样隐藏.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    proxy_set_header X-Forwarded-For $remote_addr;

    server_tokens off;

    location / {
        fastcgi_pass    127.0.0.1:8000;
        fastcgi_param   SCRIPT_FILENAME     $document_root$fastcgi_script_name;
        fastcgi_param   PATH_INFO           $fastcgi_script_name;

        fastcgi_param   SERVER_PROTOCOL        $server_protocol;
        fastcgi_param   QUERY_STRING        $query_string;
        fastcgi_param   REQUEST_METHOD      $request_method;
        fastcgi_param   CONTENT_TYPE        $content_type;
        fastcgi_param   CONTENT_LENGTH      $content_length;
        fastcgi_param   SERVER_ADDR         $server_addr;
        fastcgi_param   SERVER_PORT         $server_port;
        fastcgi_param   SERVER_NAME         $server_name;
        fastcgi_param   REMOTE_ADDR         $remote_addr;
        fastcgi_param   HTTPS               on;
        fastcgi_param   HTTP_SCHEME         https;

        access_log      logs/seahub.access.log;
        error_log       logs/seahub.error.log;
        fastcgi_read_timeout 36000;
        client_max_body_size 0;
		proxy_request_buffering off;
    }
    location /seafhttp {
        rewrite ^/seafhttp(.*)$ $1 break;
        proxy_pass http://127.0.0.1:8082;
        client_max_body_size 0;
        proxy_request_buffering off;
        proxy_connect_timeout  36000s;
        proxy_read_timeout  36000s;
        proxy_send_timeout  36000s;
        send_timeout  36000s;
    }
    location /media {
        root C:/SeafileProgram/seafile-server-6.0.7/seahub;
    }
}

}

我自己解决了,原来是忘记设置seafile-data/seafile.conf里fastcgi=true

另外论坛人好少啊,以及服务器手册中文没英文全

英文论坛的人会很多。