Configurer plex sur un sous-domaine (apache reverse proxy)

Voici la configuration d’un Vhost Apache pour pouvoir acceder à Plex depuis une adresse type :


http://plex.domaine.tld

Créez un virtual host pour plex:

nano /etc/apache2/sites-available/plex.conf

Voici le fichier de configuration de votre vhost:

<VirtualHost *:80>
        ServerName plex.domain.tld

        <Proxy *>
                Order deny,allow
                Allow from all
        </Proxy>

        ProxyRequests Off
        ProxyPreserveHost On
        ProxyPass / http://domain.tld:32400/
        ProxyPassReverse / http://domain.tld:32400/

        RewriteEngine on
        RewriteCond %{REQUEST_URI} !^/web
        RewriteCond %{HTTP:X-Plex-Device} ^$
        RewriteRule ^/$ /web/$1 [R,L]

</VirtualHost>

Activer les modules proxy et proxy_http

a2enmod proxy proxy_http

Activez votre nouveau virtual host

cd /etc/apache2/sites-available/

a2ensite plex.conf

/etc/init.d/apache2 restart

Maintenant votre serveur doit etre accessible via l’url suivante:

http://plex.domaine.tld/

1 commentaire

  1. image Harkot

    Was working but not anymore.

Écrire un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec une *

Quelle est le premier caractère du mot h5ygkmr ? :