Jump to content


Photo

Running the new PlexConnect together with Apache


4 replies to this topic

#1 Joel Fernandes

Joel Fernandes

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 18 September 2013 - 01:45 PM

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



#2 wahlman.j

wahlman.j

    Plex Star

  • Members
  • PipPipPipPipPipPip
  • 1433 posts

Posted 18 September 2013 - 02:59 PM

You must change your apache port to something besides port 80. Look here for your answer http://forums.plexap...bserver-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


OpenConnect (OSX APP) & WebConnect (OSX Web-Managment "PlexConnect Remote Control") https://forums.plex....onnect-osx-app/ALL IN ONE LINKS FOR EVERYTHING RELATED TO OSX & A LOT MORE(POST#2):http://forums.plexap...cripts-for-osx/Appletv detailed firmware revisions and shsh status: FirmwareIf you like any of my apps, tutorials, or help fixing your plexconnect/pms/plex issues with teamviewer feel free to send me a donation via paypal: US EUR<p>If you would like to donate to plexconnect do that here: US-$ EUR

If you enjoy my app and cannot afford to donate you can always share your plex library. Just login to the site here and goto the servers link and share to my user name http://plex.tv

wahlman.j

#3 iice64

iice64

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 18 September 2013 - 03:18 PM

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>

 


#4 drewbie

drewbie

    Dedicated Member

  • Members
  • PipPipPip
  • 340 posts

Posted 18 September 2013 - 11:02 PM

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>


#5 tcviper

tcviper

    Plex Ninja

  • Plex Ninja
  • PipPipPipPipPip
  • 614 posts
  • Location: Netherlands

Posted 14 October 2013 - 12:54 PM

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


Primary PMS: HP Quad Intel Xeon Ubuntu 12.04, 16Gb memory

Secondary PMS: Macmini 2012 i7, 16gb Ram, Fuzion Drive (1TB)

Storage Server 1: Synology RS3412xs with 20TB of WD Red Drives, AFP to Plex Server

Storage Server 2: Synology DS1511+ with 10TB of WD Black Drives, AFP to Plex Server (PMS 2)

DLNA/Airplay Clients: Sony KDL-55W905A | KDL-42W655A, Sony Receiver DN1040

Desktop Clients: 2 x Windows 8 24", 2 x 15" MBP, 2 x 13" MBPA, iMac i5 2011 27"

Mobile Clients: 2 x iPhone 5, 2 x Sony Xperia Z, 1x iPad 4 32Gb

Media Players: Sony NSZ-GS7 GTV, ATV3




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users