如何解决从 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 举报,一经查实,本站将立刻删除。