最近、サーバーに PLEX Media Server をインストールしましたが、Apache プロキシの背後に隠すのが困難です...
私は見つけたこれPLEX へのサブドメインベースのアクセスを許可する vhost 構成 (例: plex.example.com)。問題は、特定のサブドメインを作成したくないことです。そのため、次のような (透過的な) URL ベースのリダイレクトを作成したいと考えています。
私のPLEXサーバーのURL:http://example.com:32400/web/index.html
私が欲しいもの:https://example.com/plex/index.html
次の vhost 構成を試しました:
<VirtualHost *:443>
ServerName example.com
ProxyRequests off
ProxyPreserveHost On
ProxyPassMatch ^/plex/(.*)$ http://localhost:32400/web/$1
ProxyPassReverse /web http://localhost:32400/web
</VirtualHost>
しかし、正常に動作しません。