Nginx 反向代理后面的 Utorrent Web UI 未加载登录网页 css

Qtorrent web GUI behind Nginx reverse proxy not loading login webpage css

Torrent 客户端 qtorrent 具有 Web GUI。

具有唯一 IP 地址的一台服务器上的 Torrent 客户端。 具有唯一 IP 地址的 Nginx 反向代理设置。

已设置 Nginx 反向代理以指向具有特定端口的子域地址内部 ip 地址(通过 letsencrypt 的流量 HTTPS)。

可以加载 Torrent 客户端 GUI 登录页面,但没有页面格式(下面提供的图像)。

enter image description here

enter image description here

在本地网络上时,可以通过本地 ip address:port.

访问 Torrent 客户端 GUI

在网站(通过域地址 sub.example.com 访问)中输入登录详细信息时,会加载一个空白的白色网页,并且网址会更改为“https://www.sub.example.com/?username=UNameExample&password=PASSWORDExample

关于在哪里确认或检查配置的任何建议。

以下为 qtorrent 的 Nginx 反向代理设置工作。

最初找到的解决方案here

                #
            #Code below is for SSL
            #
            server {
                listen 80;
                listen [::]:80;
                server_name bittorrent.example.com www.bittorrent.example.com;

                include snippets/letsencrypt.conf;
                return 301 https://$host$request_uri;
            }


            server {
               listen 443 ssl http2;
               server_name bittorrent.example.com;

               ssl_certificate /etc/letsencrypt/live/bittorrent.example.com/fullchain.pem;
               ssl_certificate_key /etc/letsencrypt/live/bittorrent.example.com/privkey.pem;
               ssl_trusted_certificate /etc/letsencrypt/live/bittorrent.example.com/chain.pem;
               include snippets/ssl.conf;
               include snippets/letsencrypt.conf;

               return 301 https://www.bittorrent.example.com$request_uri;
            }

            server {
               listen 443 ssl http2;
               server_name www.bittorrent.example.com;

               ssl_certificate /etc/letsencrypt/live/bittorrent.example.com/fullchain.pem;
               ssl_certificate_key /etc/letsencrypt/live/bittorrent.example.com/privkey.pem;
               ssl_trusted_certificate /etc/letsencrypt/live/bittorrent.example.com/chain.pem;
               include snippets/ssl.conf;
               include snippets/letsencrypt.conf;

               location / {
                proxy_pass http://192.168.0.10:9091/;
                proxy_set_header        X-Forwarded-Host        $server_name:$server_port;
                proxy_hide_header       Referer;
                proxy_hide_header       Origin;
                proxy_set_header        Referer                 '';
                proxy_set_header        Origin                  '';
                add_header              X-Frame-Options         "SAMEORIGIN";
               }
            }