Configure HTTP SSL Redirects

It is recommended that you configure FileCloud Server so that it can be accessed securely only via HTTPS.

Setting redirects from HTTP to HTTPS is not recommended because mobile apps and other clients do not follow redirects (for security).

Therefore removing the HTTP port completely is the best option.

HTTPS FileCloud Best Practices


If you must use a redirect, you will need to edit the webserver config file.

For Windows:

  1. Open the following file for editing:
    c:\xampp\apache\conf\extra\httpd-vhosts.conf
  2. Add the following code

    <VirtualHost *:80>
     RewriteEngine On
     RewriteCond %{HTTPS} off
     RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
     </VirtualHost>
  3. Save and close the file.
  4. Open the following file for editing:
    C:\xampp\apache\conf\httpd.conf
  5. Make sure the following Include line is uncommented:

    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
  6. Save and close the file.
  7. Restart the server.


For Linux:


  1. Open the following file for editing:
    /etc/apache.d/sites-enabled/000-default.conf
  2. Add the following code: ( If you already have a VirtualHost directive, add only the lines starting with "Rewrite". )

    <VirtualHost *:80>
     RewriteEngine On
     RewriteCond %{HTTPS} off
     RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
     </VirtualHost>
  3. Save and close the file.
  4. Restart the server.