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:
- Open the following file for editing:
c:\xampp\apache\conf\extra\httpd-vhosts.conf
Add the following code
<VirtualHost *:80> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </VirtualHost>
- Save and close the file.
- Open the following file for editing:
C:\xampp\apache\conf\httpd.conf
Make sure the following Include line is uncommented:
# Virtual hosts Include conf/extra/httpd-vhosts.conf
- Save and close the file.
- Restart the server.
For Linux:
- Open the following file for editing:
/etc/apache.d/sites-enabled/000-default.conf
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>
- Save and close the file.
- Restart the server.