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, http://www.filerun.com/, 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>

    ServerAlias chuwi.jgndata.biz
    ServerName chuwi.jgndata.biz

    ProxyPreserveHost On

    ProxyPass / https://10.0.1.152/
    ProxyPassReverse / https://10.0.1.152/

    ErrorLog ${APACHE_LOG_DIR}/chuwi.jgndata.biz-error.log
    CustomLog ${APACHE_LOG_DIR}/chuwi.jgndata.biz-access.log combined

RewriteEngine on
RewriteCond %{SERVER_NAME} =chuwi.jgndata.biz
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,QSA,R=permanent]
</VirtualHost>

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