Running the new PlexConnect together with Apache

Hey guys,

 

I have Apache installed on my machine (OSX) and until the Apple's update regarding the certificates I was able to use PlexConnect together with Apache.

 

Now, I've updated the PlexConnect and it works perfectly if I shutdown Apache. However, I've made a few changes in order to have it working with Apache and no luck, I always get the "Trailers not available" message.

 

This is my Settings.cfg

 

[PlexConnect]
logpath = .
enable_dnsserver = True
prevent_atv_update = True
port_dnsserver = 53
enable_plexconnect_autodetect = True
port_pms = 32400
port_webserver = 8085
ip_plexconnect = 0.0.0.0
certfile = ./assets/certificates/trailers.pem
ip_dnsmaster = 8.8.8.8
loglevel = Normal
ip_pms = 192.168.178.10
enable_plexgdm = True
port_ssl = 443
ip_webserver = 0.0.0.0

 

And this is the setting I have on my Apache configuration for the 80 port forwarding

 


    ServerName trailers.apple.com
    ProxyPreserveHost On
    ProxyPass / http://192.168.0.14:8085/
    ProxyPassReverse / http://192.168.0.14:8085/

 

What am I missing?

 

Thanks in advance

You must change your apache port to something besides port 80. Look here for your answer http://forums.plexapp.com/index.php/topic/80779-install-trailerspem-from-appletv-using-a-webserver-on-osx/

I run osx as well and have a webserver running 24/7 on a dif port such as 5555 since trailers uses port 80 by default and there is no way to change that on atv2/3

Hello Joel,
you have to enable ssl in conf/http.conf and insert VirtalHosts in conf/extra/httpd-vhosts.conf

First entry is for your default domain with your certificates for your domain
Second entry is for trailers.apple.com with your certificates for atv
Third entry is for atv.plexconnect with your certificates for atv

Change Settings.cfg

[PlexConnect]
port_ssl = 8448  or anything else, but must not 443, because apache2 is now listing on port 443

Apache2 now redirects all request for trailers.apple.com and atv.plexconnect to PlexConnect Webserver via http on port 8085

best regards

iice64


    SSLEngine on
    SSLProtocol -ALL +SSLv3 +TLSv1
    SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXPORT    
    SSLCertificateFile      "/server.crt"
    SSLCertificateKeyFile   "/server.key"

    DocumentRoot “<your_path>/www”

<VirtualHost *:443>
    SSLEngine on
    SSLProtocol -ALL +SSLv3 +TLSv1
    SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXPORT    
    SSLCertificateFile      “<your_path>/trailers.cer”
    SSLCertificateKeyFile   “<your_path>/trailers.key”
    
    ProxyPreserveHost On
    ProxyPass / http://192.168.0.14:8085/
    ProxyPassReverse / http://192.168.0.14:8085/
    ServerName trailers.apple.com

<VirtualHost *:443>
    SSLEngine on
    SSLProtocol -ALL +SSLv3 +TLSv1
    SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXPORT    
    SSLCertificateFile      “<your_path>/trailers.cer”
    SSLCertificateKeyFile   “<your_path>/trailers.key”
    
    ProxyPreserveHost On
    ProxyPass / http://192.168.0.14:8085/
    ProxyPassReverse / http://192.168.0.14:8085/
    ServerName atv.plexconnect

 

Dont forget that PlexCOnnect had an update before the HTTPS change by apple that requires you to also have atv.plexconnect as a host name to be redirected to plexconnect if you are not using plexconnect on port 80.


ServerName atv.plexconnect
ProxyPreserveHost On
ProxyPass / http://192.168.0.14:8085/
ProxyPassReverse / http://192.168.0.14:8085/

Can someone please sum up the complete guide on how to make this work now with SSL and the whole thing on OSX Server? Cause im totally lost here with all the different documents and things to do :(

Hey everyone, not sure if you're still looking for a writeup answer for this one, but I ran into this same issue and solved it using http redirects.  Apache is still running on port 80/443 but uses redirects to forward requests for trailer.apple.com to the plexconnect server listening on ports 9999 and 8443.  Full step by step writeup is over on my blog.  http://www.linuxtoolbox.ninja/?p=60

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.