Skip to end of metadata
Go to start of metadata

Originally written in May 2017

This will be a guide on to run FileRun behind apache2 reverse proxy with SSL support. FileRun,, is an excellent file sharing program that looks very similar to Google Drive, making it great for users who are used to already accustomed to using gDrive.

First, install FileRun as usual. I personally installed this on a fresh Debian 8 VM, so I followed FileRun's excellent guide for installation. Oddly enough I found these directions on their blog rather than their documentation section, but oh well.

When your finished, configure your main internet-facing node as a reverse proxy. I personally use letsencrypt for all of my SSL certificates. Here is my apache2 reverse proxy configuration:

<VirtualHost *:80>


    ProxyPreserveHost On

    ProxyPass /
    ProxyPassReverse /

    ErrorLog ${APACHE_LOG_DIR}/
    CustomLog ${APACHE_LOG_DIR}/ combined

RewriteEngine on
RewriteCond %{SERVER_NAME}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,QSA,R=permanent]

Note: SSL configuration (including the redirects at the bottom) was done by letsencrypt.

Now, we'll want to setup a self-signed certificate on the VM running FileRun, because if its not being accessed via HTTPS it freaks out. I followed this guide to accomplish this.

Lastly, we need to change a configuration file. This part is importaint. cd to the directory where you installed FileRun. For example mine will be /var/www/html/. cd into the customizables directory. Create and edit a file called config.php.

Paste the following: Change the URL to of course what fits your configuration.

Load the site and test if it works!

  • No labels