Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

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

 

<VirtualHost *:80>
    ServerName trailers.apple.com
    ProxyPreserveHost On
    ProxyPass / http://192.168.0.14:8085/
    ProxyPassReverse / http://192.168.0.14:8085/
</VirtualHost>

 

What am I missing?

 

Thanks in advance

Comments

  • wahlman.jwahlman.j Posts: 3,237Members, Plex Pass Plex Pass
    edited September 2013

    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

  • iice64iice64 Posts: 2Members
    edited September 2013

    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

    <VirtualHost *:443>
        SSLEngine on
        SSLProtocol -ALL +SSLv3 +TLSv1
        SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXPORT    
        SSLCertificateFile      "<your_path>/server.crt"
        SSLCertificateKeyFile   "<your_path>/server.key"
    
        DocumentRoot "<your_path>/www"
    </VirtualHost>
    
    <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>
    
    <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
    </VirtualHost>
    
     
  • drewbiedrewbie Posts: 1,121Members, Plex Pass Plex Pass

    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.

    <VirtualHost *:80>
    ServerName atv.plexconnect
    ProxyPreserveHost On
    ProxyPass / http://192.168.0.14:8085/
    ProxyPassReverse / http://192.168.0.14:8085/
    </VirtualHost>
    
  • MichielMichiel Plex Ninja Posts: 849Members, Plex Pass, Plex Ninja Plex Ninja
    edited October 2013

    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 :(

  • guitarman_usaguitarman_usa Posts: 4Members

    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

Sign In or Register to comment.