簡體   English   中英

Nginx反向代理背后的Qtorrent Web GUI無法加載登錄網頁CSS

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

洪流客戶端qtorrent具有Web GUI。

一台服務器上的Torrent客戶端具有唯一的IP地址。 具有唯一IP地址的Nginx反向代理設置。

設置Nginx反向代理以指向具有特定端口的子域地址內部ip地址(通過letencrypt進行流量HTTPS)。

可以加載Torrent Client GUI登錄頁面,但不能加載頁面格式(下面提供的圖像)。

在此處輸入圖片說明

在此處輸入圖片說明

在本地網絡上時,可以通過本地ip地址:端口訪問Torrent Client GUI。

在站點中輸入登錄詳細信息(可通過域名sub.example.com訪問)時,將加載空白的白色網頁,並且該網址將更改為“ https://www.sub.example.com/?username= UNameExample&password = PASSWORDExample

關於在哪里確認或檢查配置的任何建議。

下面為qtorrent的Nginx反向代理設置工作。

原來在這里找到解決方案。

                #
            #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";
               }
            }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM