从 Plex 服务器 URL 中删除 /web/index.html#!/

问题描述

我当前的 Nginx 配置(如下)将在任何地方在网络浏览器地址栏中键入:https://plex.mydomain.com 时成功将我带到 Plex 媒体服务器的网络界面。

但是,在显示 Web 界面后,该 URL 会立即自动(永久)转发到: https://plex.mydomain.com/web/index.html#!/

如何使用重写指令在我的网络浏览器的地址栏中持续显示https://plex.mydomain.com 而不是 https://plex.mydomain.com/web/index.html#!/

    server {
            listen 443 ssl http2; 
            listen [::]:443 ssl http2;
            ssl_certificate     ./ssl/fullchain.cer;
            ssl_certificate_key ./ssl/cert.key;
            server_name  plex.mydomain.com;
            location / {
                proxy_pass http://localhost:32400;
                proxy_set_header Accept-Encoding "";
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection $http_connection;                }
    }

我尝试将以下行添加到上面的配置中,但没有任何区别。

rewrite /web/index.html#!/(.*) /$1 break;

我也试过下面这行;这也没有任何区别:

rewrite /web/index.html/(.*) /$1 break;

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)