
This takes any url that does not start with /web and rewrites it to /web. Then restart your apache by opening Terminal.app and running sudo apachectl restart to apply the changes. The X-Plex-Device line is a clever bit from Spike Grobstein that allows the internal Plex Media Server communication to work still as it requires the Web service url to be unaltered.

I added the following code to /private/etc/apache2/nf. It may work on *nix machines, but your mileage may vary. You do this in your apache nf file on the server.įrom here on out the instructions are Mac OS X 10.8 specific. Plex does not have a configuration setting to listen on port 80, so I had to reconvert traffic on port 80 to redirect back to port 32400. Port forwarding is only half the problem though. I wasn’t using the server to host any other webpages, so hijacking the whole system to serve Plex was fine for me. Port 80 is the default http port, so omitting a port in the url is the same as using port 80. To accomplish this, instead of having my router forward port 32400 to the server, I set it up to forward port 80 instead. The next step is to get rid of that pesky port.

I could have written a script to do this for me, but I already had DynDNS setup for other reasons. Then, I use a service called DynDNS to keep this subdomain up-to-date with my home’s external IP address. This one is easy as there is an entire infrastructure older than I am to match easy-to-remember names to hard-to-remember computer IP addresses: DNS.įirst, I added a plex subdomain to one of my existing domain names. The first step is to make it easy for her to reach the home machine. She should be able to enter a simple url, such as to get to Plex, so let’s figure out how to do that. She shouldn’t have to figure out the IP address of our home machine, remember which port to use or remember the relative path of the server. While this process is great and easy for me as a software-engineer, my wife, who is !software-engineer should be able to watch Plex as easily as I can.

When I want to access the Plex web client from teh internetz, I can simply type my home IP, port and path into any browser from anywhere in the world, login and Boom-Wow-Kapow™, I am in. One such program is Plex, a media server that houses, manages and maintains my media collection.

I have all the appropriate port-forwarding in place for ssh, ftp, vnc, and other miscellaneous ports for various different tasks and programs. Being the Über Geek that I am, reaching my home server from anywhere in the world is trivial.
