How to make Plex media server available from remote without having an account through apache

Hello there. 

Plex Media Server

I use Plex ( It’s a fantastic tool to manage your videos and movies. You stream anything to anything with a modern browser.  The thing is, if you want to be able to share your stuff through the Internet and see a film you’ve got at a friends house, you need to create an online account on the Plex home page. I’m not to fond of creating accounts sharing what I have. 

There are several ways you can reach your plex meda server from the outside, but in this post we’re gonna use apache (you need to install it if you don’t already have it installed).  In my home network I have my own web server (if you are reading this you’re on it right now ;).  Also on the same network I have got my own proper Ubuntu server with Plex installed.

How do we connect the two services? Apache has got this neat thing called ProxyPass and ProxyPassReversed. So what I did was the following:

  • Create a subdomain
  • Create a .conf file for apache (see below):
  • sudo vim /etc/apache2/sites-available/
  • Then “cd /etc/apache2/sites-enabled” and make a link:
  • sudo ln -s ../sites-available/
  • Restart apache: sudo service apache2 restart

This is the .conf file. You need to change all marked in bold to your own values. The part in blue is only needed if you would like some sort of protection. This makes it impossible for anyone to enter your site without a proper username and password. You can see how to create the password file here.

<VirtualHost *:80>
   ServerName ""
   ServerAdmin ""
   ProxyPass /
   ProxyPassReverse /

   CustomLog /var/www/vhosts/ common
   ErrorLog "/var/www/vhosts/"

   ProxyPreserveHost on
   <Proxy *>
      AuthType Basic
      AuthName "password protected..."
      AuthUserFile "/var/www/vhosts/"
      Require valid-user


Now try from the outside:


2 thoughts on “How to make Plex media server available from remote without having an account through apache”

  1. Thanks. My problem exactly. These days we cannot just “share” information with everyone (sad actually). I love the Plex product idea. I have no reason whatsoever to suspect the excellent Plex development team of deliberately “sharing” information. They seem rock solid. But features often lessens security. I had PlexPass just for the reason of organizing multiple users contents (my kids and I). When it comes to security I mostly rely on common sense and SSL+Kerberos. Also Apache is “controllable”. I know nothing about the embedded http service in Plex. I also implemented (for fun) a way to turn ports on/off with PGP encrypted emails (procmail).

Leave a Reply

Your email address will not be published. Required fields are marked *