You might need to run FileCloud server in maintenance mode when:
- Upgrading the server
- Applying patches
- Troubleshooting issues
During these situations it is preferable to run FileCloud in maintenance mode.
When run in maintenance mode, the following conditions apply:
- User interactions with the site are not allowed
- Admin interactions can still be performed
To run FileCloud Server in maintenance mode:
Setup Maintenance Mode Rules
Edit the following htaccess file in your FileCloud installation and add the following lines to the top of the file (right after the line RewriteEngine On ).
|Main .htaccess file
In versions of FileCloud prior to 20.2 do the same for the sub .htaccess file under core folder:
Open the file WWWROOT/core/.htaccess
- in Windows, C:\xampp\htdocs\core\.htaccess
- in Linux, /var/www/core/.htaccess
Note: Since the .htaccess file may be replaced when updating FileCloud, after update, check if maintenance mode is still active and add the rules again if required before starting the web server.
Enabling Maintenance Mode
Now that the rules for maintenance mode has been setup, FileCloud can be switched to maintenance mode, by creating the following files.
|This can be an empty file.
|File containing custom html messages for maintenance mode
Customizing the Maintenance Mode Notification Page
FileCloud maintenance mode notification page can be customized by editing the file WWWROOT/resource/ui/maintenance/maintenance.html. Any logos and css files that needs to be used in the html page can be placed under the same folder and referenced.
FileCloud maintenance mode can be switched off by deleting the file following you created: