本文最后更新于 2024-11-13,转载请标明原作者!

如果使用了Nginx反向代理,检查配置是否正确:

  location / {
    proxy_set_header Host $http_host;
    proxy_set_header Range $http_range;
	proxy_set_header If-Range $http_if_range;
    proxy_redirect off;
    # the max size of file to upload
    client_max_body_size 20000m;
    #改成你自己的URL
    proxy_pass http://127.0.0.1:5244;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }

尤其需要注意Host是$http_host而不是$host,$host不带端口号,而$http_host带端口号。

proxy_set_header Host $http_host;