NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

AlisterFiend's avatar
AlisterFiend
Aspirant
Jul 24, 2015
Solved

Need help creating a Virtual Host to forward web requests to another port

I am using my ReadyNAS to run Plex Media Server. In order to serve media to my Apple TV I use PlexConnect to interface between my ATV and Plex. It traps calls to trailers.apple.com allowing my media ...
  • WhoCares_'s avatar
    Jul 26, 2015

    Generally speaking, what you'd need are VHosts looking roughly like this:

     

    <VirtualHost *:80>

        ServerName  trailers.apple.com

        ProxyPass / http://192.168.2.4:81/

        ProxyPassReverse / http://192.168.2.4:81/

    </VirtualHost>

     

    <VirtualHost *:443>

        ServerName  trailers.apple.com

        AllowCONNECT 8443

        ProxyPass / https://192.168.2.4:8443/

        ProxyPassReverse / https://192.168.2.4:8443/

    </VirtualHost>

     

    Maybe you also need to add "ProxyPreserveHost On" to the statements above. For proxying to work it doesn't matter whether the target is on the same or on a different host. Most examples just use a different host because that's the most common use case.

     

    Your major problem, however, will be to redirect requests for "trailers.apple.com" to the ReadyNAS in the first place, e.g. to make your ATV actually send the requests to the ReadyNAS. For that to work you'll either need a local DNS server and tell the ATV to use that one instead of whatever DNS server it is using by default or you need to add an entry for your ReadyNAS's IP to the local "/etc/hosts" file on the ATV.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More