Skip to end of metadata
Go to start of metadata

Introduction

It is always recommended that FileCloud on a production environment should run only on HTTPS (SSL), running on port 443. This ensures all communications between clients and FileCloud server are completely encrypted. To access these secured sites, users will have to type in https://<SITENAME> to access the site.

HTTP To HTTPS Redirects

After setting up HTTPS, it is also recommended that existing HTTP port on the FileCloud server is disabled so that FileCloud can be accessed only securely via HTTPS. Setting redirects from HTTP to HTTPS is not recommended because mobile apps and other clients do not follow redirects (for security) and therefore removing HTTP completely is the best option.

But still if you like to do the redirect, add the following lines:

<VirtualHost *:80>
 RewriteEngine On
 RewriteCond %{HTTPS} off
 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
 </VirtualHost>
  • In Windows, the above lines should we added to file c:\xampp\apache\conf\extra\httpd-vhosts.conf. Restart the apache server.
  • In Linux, the above lines should be added to the /etc/apache.d/sites-enabled/000-default.conf file. If you already have a VirtualHost directive, add only the lines starting with "Rewrite".  Restart the apache server.

Disable HTTP

  • To Disable HTTP (port 80) for Windows,  open webserver config under c:\xampp\apache\conf\httpd.conf and comment out the line with Listen 80. Restart the server.
  • To Disable HTTP (port 80) for Linux,  open webserver config under /etc/apache2/ports.conf and comment out the line with Listen 80. Restart the server.

HTTPS and iOS

If HTTPS is enabled on your FileCloud server, then ensure your SSL certificate and its chain is fully valid. 
If you have an invalid SSL configuration, your users would receive various errors on the browser, and iPhone/iPad apps cannot preview Office documents.

You can check the validity of the SSL certificate by testing your install against a SSL certificate checker like https://www.sslshopper.com/ssl-checker.html
Prov
ide your FileCloud URL and it will report any potential problems your SSL installation might have. In other words, these tools should report no errors for your FileCloud to function properly in SSL mode.

Change Default HTTP Port from 80 to some other port

It is possible to change the default listening port (80) to some other port due to conflicts etc

For Windows,

open  c:\xampp\apache\conf\httpd.conf  locate the following two lines:

Listen 80
ServerName localhost:80

and change it to 

Listen your_new_port
ServerName localhost:your_new_port

For Linux:

Open /etc/apache2/ports.conf

locate  (should be after 

Listen 80

and change it to 

Listen Your_new_port

 

Open /etc/apache2/sites-enabled/000-default.conf

Locate 

<VirtualHost *:80>

and change it to

<VirtualHost _default_:your_new_port>

Change Default HTTPS Port from 443 to some other port

It is possible to change the default listening port (443) to some other port due to conflicts etc

For Windows,

open  c:\xampp\apache\conf\extra\httpd-ssl.conf  locate 

Listen 443

and change it to 

Listen your_new_port

 

Locate 

<VirtualHost _default_:443>

and change it to

<VirtualHost _default_:your_new_port>

For Linux:

Open /etc/apache2/ports.conf

locate  (should be after 

<IfModule mod_ssl.c>
	Listen 443
</IfModule>

and change it to 

<IfModule mod_ssl.c>
	Listen Your_new_port
</IfModule>

 

Open /etc/apache2/sites-available/default-ssl

 

Locate 

<VirtualHost _default_:443>

and change it to

<VirtualHost _default_:your_new_port>
  • No labels