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/
4 commentaires
Harkot #1 mercredi 18 avril 2018 @ 11:55
Was working but not anymore.
eddielc2 #2 mardi 10 novembre 2020 @ 13:29
Sexy photo galleries, daily updated collections
http://sexyboysporn.relayblog.com/?alexandra
hot gay twink porn free free 1930 erotic vintage cartoons porn paul wagner porn gay free pigtail porn ass pics club british porn
JamesJuite #3 dimanche 15 novembre 2020 @ 05:47
положительный сайт https://casinospinups.com
Quick Loans #4 mercredi 16 décembre 2020 @ 15:27
<a href="http://paydayln.com/">the loan</a>