Yes, I've tried this under Linux with my own DNS-server and an Apache-reverse proxy. However Apache reports HTTP 502-errors. There are some invallid HTTP-request fired to Apache that apache can't forward.
I've tried a vhost with a ProxyPass / to the PlexConnect-app (including ProxyPreserveHost on), because I have some other apps behind my Apache-server, such as CouchPotato and such. No luck for me with this setup due to the invalid request though.
Another problem is the 403-methods. Someone thought that it makes sense to create some access list that only the IP-adress of the AppleTV is allow to do request to this app. I don't think thats sensible, so I hacked that access list out of the config and it worked (a bit more). But still no luck for me.
I don't think it is as simple as just serving the assets-folder. I think you should create a reverse proxy with IIS and run PlexConnect on a different port than 80. That's your only chance i think, because there is some XML-templating done in this application.
well got it to accept the reqiests by setting it to 1==1 - the problem now is it wont play the movies (if i choose a movie it just says the trailer is not available..... :-/
Do you have any problems with the proxy-requests? Under Apache, the apache-server is not always posting the correct request to the PlexConnect-app, because of malicious http-request (in the eyes of Apache). And what version of PlexConnect are you running? Maybe my PlexConnect-version that I tried is not that recent.
OK, so PlexConnect is HTTP/1.0 at the moment. Apache reverse proxy has to be forced into HTTP/1.0-mode for the proxypass-section.
My Proxy-settings is the following:
ServerName trailers.apple.com
ErrorLog ${APACHE_LOG_DIR}/trailers_error.log
CustomLog ${APACHE_LOG_DIR}/trailers_access.log combined
## Proxy-stuff
ProxyRequests On
ProxyPreserveHost On
Order Deny,Allow
Deny from all
## Allow from AppleTV IP-address
Allow from 10.0.0.94
ProxyPass http://localhost:8085/
ProxyPassReverse http://localhost:8085/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
The problem however at the moment is that iOS 5.0.2 is kinda botchy. The settings-screen is terribly slow and those settings are getting through twice. The first is a HTTP 200 and the second request returns a HTTP 502 with apache. This behavior is with 5.0.2 and i'm looking for this stuff in the latest version at the moment. Hope that solves all the problems and the double request.
I figured it out why Apache is returning the HTTP 502-error.
It is happening in the atvlogger-handler. The difference with that is that it doesn't send a response back to the client, so the webserver or client is retrying multiple times. I've added a HTTP 200 response to it and the errors are gone and the atvlogger-line is only showed once!
Hey rippiedoos, thanks for the tip, I will makes these changes. Just a quick question is it necessary to write 2 strings with a 1 second pause between? Wouldn’t just writing 1 string be enough? In fact do we need to send anything, would just sending the 200 response and the header be enough?