Hello everyone
I’m new to Pley but pretty fascinated with the possibilities. I have set up the server at home and streaming is working via plex.tv but I’m having trouble with direct connection to my homelab.
You see, I have a hardware server running KVM (Ubuntu 16.04) on which I run an untangle firewall and a DMZ vm.
I have an apache server running on DMZ that should redirect port 80 requests to https 443 and from there proxy to my internal server at port 32400.
At first I had trouble with the proxying but since using this config I get a login prompt when I go to plex.mydomain.tld.
ServerSignature Off ServerTokens Prod<VirtualHost *:80>
ServerName plex.glavas.ch
This VirtualHost redirects everything to HTTPS on port 443.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://192.168.2.100:32400/
ProxyPassReverse / http://192.168.2.100:32400/
RewriteEngine On
RewriteCond %{REQUESR_URI} !^/web
RewriteCond %{HTTP:X-Plex-Device} ^$
RewriteRule ^/$ /web/$1 [R,L]
<Location />
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /etc/apache2/basic_passwords
Require user name
</Location>
<Location /:/websockets/notifications>
ProxyPass wss://192.168.2.100:32400/:/websockets/notifications
ProxyPassReverse wss://192.168.2.100:32400/:/websockets/notifications
</Location>
LogLevel warn
ErrorLog /var/log/apache2/error_plex.log
CustomLog /var/log/apache2/ssl_access_plex.log combined
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /etc/letsencrypt/live/plex.mydomain.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/plex.mydomain.tld/privkey.pem
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
As you can see the hardware server with plex installed and containing the media data has IP 192.168.2.100 while the DMZ host has 192.168.3.100. I have opened ports 80, 443 and 32400 from the internet to DMZ.
I also have a bypass rule for 32400 from DMZ to Plex.
Does anyone have an idea what I am missing here?
Regards and thanks in advance,
Marco
